X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bigscreen%2Fwidestring.h;h=a2f2a245423322042d234d226df6e1be89ac9d89;hb=8cbc3e3bf318ca7b1d2ee6483f6db07ef5ea7a07;hp=67ffdbb7090864741f717d921581aa6e4fb882c0;hpb=13ed6ca4807f938eba70592b2cb728cd3b632115;p=ccbs diff --git a/bigscreen/widestring.h b/bigscreen/widestring.h index 67ffdbb..a2f2a24 100644 --- a/bigscreen/widestring.h +++ b/bigscreen/widestring.h @@ -2,6 +2,7 @@ #define _WIDESTRING_H 1 #include +#include // 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) */