]> git.sesse.net Git - ccbs/blobdiff - bigscreen/widestring.h
Port to pqxx3, where we need the widestring traits available at parse time.
[ccbs] / bigscreen / widestring.h
index 67ffdbb7090864741f717d921581aa6e4fb882c0..86113ffff80e7bd9bea7787b50cb0e888be76df4 100644 (file)
@@ -2,6 +2,7 @@
 #define _WIDESTRING_H 1
 
 #include <string>
+#include "pqxx/util.hxx"
 
 // UCS-4 string with support for getting from UTF-8
 class widestring : public std::wstring
@@ -14,4 +15,15 @@ public:
        void operator= (const char *from);
 };
 
+namespace pqxx
+{
+
+template<>
+inline void from_string<widestring>(const char *from, widestring &to)
+{
+       to = from;
+}
+
+}
+
 #endif /* !defined(_WIDESTRING_H) */