aboutsummaryrefslogtreecommitdiff
path: root/net/sobby/files/patch-inc__config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'net/sobby/files/patch-inc__config.hpp')
-rw-r--r--net/sobby/files/patch-inc__config.hpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/net/sobby/files/patch-inc__config.hpp b/net/sobby/files/patch-inc__config.hpp
new file mode 100644
index 000000000000..ff2468cfd118
--- /dev/null
+++ b/net/sobby/files/patch-inc__config.hpp
@@ -0,0 +1,62 @@
+--- inc/config.hpp.orig
++++ inc/config.hpp
+@@ -30,6 +30,30 @@
+ #include <libxml++/nodes/element.h>
+ #include <libxml++/nodes/textnode.h>
+
++namespace serialise
++{
++
++template<>
++class default_context_to<Glib::ustring>: public context_base_to<Glib::ustring>
++{
++public:
++ typedef Glib::ustring data_type;
++
++ virtual std::string to_string(const data_type& from) const;
++};
++
++template<>
++class default_context_from<Glib::ustring>:
++ public context_base_from<Glib::ustring>
++{
++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<Glib::ustring>: public context_base_to<Glib::ustring>
+-{
+-public:
+- typedef Glib::ustring data_type;
+-
+- virtual std::string to_string(const data_type& from) const;
+-};
+-
+-template<>
+-class default_context_from<Glib::ustring>:
+- public context_base_from<Glib::ustring>
+-{
+-public:
+- typedef Glib::ustring data_type;
+-
+- virtual data_type from_string(const std::string& from) const;
+-};
+-
+-} // namespace serialise
+-
+ #endif // _SOBBY_CONFIG_HPP_