diff options
Diffstat (limited to 'xml/value-traits.cxx')
-rw-r--r-- | xml/value-traits.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/xml/value-traits.cxx b/xml/value-traits.cxx deleted file mode 100644 index a6ba89c..0000000 --- a/xml/value-traits.cxx +++ /dev/null @@ -1,21 +0,0 @@ -// file : xml/value-traits.cxx -// copyright : Copyright (c) 2013-2017 Code Synthesis Tools CC -// license : MIT; see accompanying LICENSE file - -#include <xml/parser> - -using namespace std; - -namespace xml -{ - bool default_value_traits<bool>:: - parse (string s, const parser& p) - { - if (s == "true" || s == "1" || s == "True" || s == "TRUE") - return true; - else if (s == "false" || s == "0" || s == "False" || s == "FALSE") - return false; - else - throw parsing (p, "invalid bool value '" + s + "'"); - } -} |