BOOST_PROGRAM_OPTIONS_DECL std::string to_local_8_bit(const std::wstring& s) { typedef codecvt<wchar_t, char, mbstate_t> facet_type; return to_8_bit(s, BOOST_USE_FACET(facet_type, locale())); }
BOOST_PROGRAM_OPTIONS_DECL std::string to_utf8(const std::wstring& s) { return to_8_bit(s, utf8_facet); }
std::string to_utf8(const std::wstring& s) { return to_8_bit(s, utf8_facet); }