I changed my class to use std::string (based on the answer I got here but a function I have returns wchar_t *. How do I convert it to std::string?
I tried this:
std::wstring ws( args.OptionArg() ); std::string test( ws.begin(), ws.end() );