#pragma once // This is a minimal polyfill that'll only work exactly for how we use codecvt #include #include namespace std { template class wstring_convert { public: static_assert(std::is_same::value, "type mismatch"); inline std::basic_string from_bytes(const string& str) { return boost::locale::conv::utf_to_utf(str); } inline string to_bytes(const std::basic_string& str) { return boost::locale::conv::utf_to_utf(str); } }; template class codecvt_utf8_utf16 { public: using Elem = E; }; } // namespace std