Opened 8 years ago

Last modified 5 years ago

#10952 new Feature Requests

program_options in wchar_t

Reported by: gast128@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.57.0 Severity: Problem
Keywords: wchar_t Cc:

Description

In Visual Studio 2013, ansi MFC builds are deprecated. More products will have to convert to wchar_t. I am aware that wchar_t is not the best Unicode representation, but it is quite dominant on Windows platforms. Some program_options parts however are bound to hard code ansi strings. For example the options_description uses std::string and char*:

po::options_description desc("Allowed options");

std::wcout << desc; //error (actual use is a std::wofstream)

Can't this just made complete template based on char type?

Change History (1)

comment:1 by aothms, 5 years ago

Any updates on this?

Note: See TracTickets for help on using tickets.