// file : cutl/xml/value-traits.txx // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file #include #include #include namespace cutl { namespace xml { template std::string default_value_traits:: serialize (const T& v, const serializer& s) { std::ostringstream os; if (!(os << v)) throw serialization (s.output_name (), "invalid value"); return os.str (); } } }