aboutsummaryrefslogtreecommitdiff
path: root/cutl/xml/value-traits.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cutl/xml/value-traits.cxx')
-rw-r--r--cutl/xml/value-traits.cxx24
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 + "'");
- }
- }
-}