
27 Jan
2009
27 Jan
'09
9:15 p.m.
It would be nice if boost would export and document to_utf8 and from_utf8 functions (possibly from string utils *headers only* library). Currently, I use following workaround, but I believe those two useful utility functions deserve better: #define BOOST_PROGRAM_OPTIONS_NO_LIB 1 #include <boost/program_options/detail/convert.hpp> #include <boost/program_options/detail/utf8_codecvt_facet.hpp> #undef BOOST_PROGRAM_OPTIONS_NO_LIB #include <libs/program_options/src/convert.cpp> #include <libs/program_options/src/utf8_codecvt_facet.cpp>