aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cutl/xml/value-traits.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/cutl/xml/value-traits.hxx b/cutl/xml/value-traits.hxx
index 0b95205..b98a6fe 100644
--- a/cutl/xml/value-traits.hxx
+++ b/cutl/xml/value-traits.hxx
@@ -40,6 +40,22 @@ namespace cutl
}
};
+ template <>
+ struct LIBCUTL_EXPORT default_value_traits<std::string>
+ {
+ static std::string
+ parse (std::string s, const parser&)
+ {
+ return s;
+ }
+
+ static std::string
+ serialize (const std::string& v, const serializer&)
+ {
+ return v;
+ }
+ };
+
template <typename T>
struct value_traits: default_value_traits<T> {};