X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fwidestring.h;fp=bigscreen%2Fwidestring.h;h=86113ffff80e7bd9bea7787b50cb0e888be76df4;hp=67ffdbb7090864741f717d921581aa6e4fb882c0;hb=f94b331787d71fbf9fa1b1084a52a2b1c79903d9;hpb=e963997f820ba4b2701855df7d9e6fd707f4671a diff --git a/bigscreen/widestring.h b/bigscreen/widestring.h index 67ffdbb..86113ff 100644 --- a/bigscreen/widestring.h +++ b/bigscreen/widestring.h @@ -2,6 +2,7 @@ #define _WIDESTRING_H 1 #include +#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(const char *from, widestring &to) +{ + to = from; +} + +} + #endif /* !defined(_WIDESTRING_H) */