--- inc/config.hpp.orig +++ inc/config.hpp @@ -30,6 +30,30 @@ #include #include +namespace serialise +{ + +template<> +class default_context_to: public context_base_to +{ +public: + typedef Glib::ustring data_type; + + virtual std::string to_string(const data_type& from) const; +}; + +template<> +class default_context_from: + public context_base_from +{ +public: + typedef Glib::ustring data_type; + + virtual data_type from_string(const std::string& from) const; +}; + +} // namespace serialise + namespace Sobby { @@ -434,28 +458,4 @@ } // namespace Sobby -namespace serialise -{ - -template<> -class default_context_to: public context_base_to -{ -public: - typedef Glib::ustring data_type; - - virtual std::string to_string(const data_type& from) const; -}; - -template<> -class default_context_from: - public context_base_from -{ -public: - typedef Glib::ustring data_type; - - virtual data_type from_string(const std::string& from) const; -}; - -} // namespace serialise - #endif // _SOBBY_CONFIG_HPP_