From 8e761289a2446367267c6c0d9a26e734f0f78306 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 16 Dec 2020 20:29:05 +0300 Subject: Get rid of legacy build systems and rename cutl/ to libcutl/ --- cutl/xml/value-traits.txx | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 cutl/xml/value-traits.txx (limited to 'cutl/xml/value-traits.txx') diff --git a/cutl/xml/value-traits.txx b/cutl/xml/value-traits.txx deleted file mode 100644 index 552c48b..0000000 --- a/cutl/xml/value-traits.txx +++ /dev/null @@ -1,34 +0,0 @@ -// file : cutl/xml/value-traits.txx -// license : MIT; see accompanying LICENSE file - -#include - -#include -#include - -namespace cutl -{ - namespace xml - { - template - T default_value_traits:: - parse (std::string s, const parser& p) - { - T r; - std::istringstream is (s); - if (!(is >> r && is.eof ()) ) - throw parsing (p, "invalid value '" + s + "'"); - return r; - } - - template - std::string default_value_traits:: - serialize (const T& v, const serializer& s) - { - std::ostringstream os; - if (!(os << v)) - throw serialization (s, "invalid value"); - return os.str (); - } - } -} -- cgit v1.1