diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-16 20:29:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-24 16:40:04 +0300 |
commit | 8e761289a2446367267c6c0d9a26e734f0f78306 (patch) | |
tree | fb495d8c18801f271d124ee48731f10df396ca89 /cutl/xml/value-traits.cxx | |
parent | 4c8104756b92b9fa16b3a725e8a6aa620dfd606e (diff) |
Get rid of legacy build systems and rename cutl/ to libcutl/
Diffstat (limited to 'cutl/xml/value-traits.cxx')
-rw-r--r-- | cutl/xml/value-traits.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/cutl/xml/value-traits.cxx b/cutl/xml/value-traits.cxx deleted file mode 100644 index fe7f23f..0000000 --- a/cutl/xml/value-traits.cxx +++ /dev/null @@ -1,24 +0,0 @@ -// file : cutl/xml/value-traits.cxx -// license : MIT; see accompanying LICENSE file - -#include <cutl/xml/parser.hxx> -#include <cutl/xml/serializer.hxx> - -using namespace std; - -namespace cutl -{ - 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 + "'"); - } - } -} |