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.hxx | 68 ----------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 cutl/xml/value-traits.hxx (limited to 'cutl/xml/value-traits.hxx') diff --git a/cutl/xml/value-traits.hxx b/cutl/xml/value-traits.hxx deleted file mode 100644 index e095bb4..0000000 --- a/cutl/xml/value-traits.hxx +++ /dev/null @@ -1,68 +0,0 @@ -// file : cutl/xml/value-traits.hxx -// license : MIT; see accompanying LICENSE file - -#ifndef CUTL_XML_VALUE_TRAITS_HXX -#define CUTL_XML_VALUE_TRAITS_HXX - -#include -#include // std::size_t - -#include - -namespace cutl -{ - namespace xml - { - class parser; - class serializer; - - template - struct default_value_traits - { - static T - parse (std::string, const parser&); - - static std::string - serialize (const T&, const serializer&); - }; - - template <> - struct LIBCUTL_EXPORT default_value_traits - { - static bool - parse (std::string, const parser&); - - static std::string - serialize (bool v, const serializer&) - { - return v ? "true" : "false"; - } - }; - - template <> - struct LIBCUTL_EXPORT default_value_traits - { - static std::string - parse (std::string s, const parser&) - { - return s; - } - - static std::string - serialize (const std::string& v, const serializer&) - { - return v; - } - }; - - template - struct value_traits: default_value_traits {}; - - template - struct value_traits: default_value_traits {}; - } -} - -#include - -#endif // CUTL_XML_VALUE_TRAITS_HXX -- cgit v1.1