Subject: [Boost-bugs] [Boost C++ Libraries] #10952: program_options in wchar_t
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-22 09:26:33
#10952: program_options in wchar_t
------------------------------+-----------------------------
Reporter: gast128@⦠| Owner: vladimir_prus
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: program_options
Version: Boost 1.57.0 | Severity: Problem
Keywords: wchar_t |
------------------------------+-----------------------------
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*:
{{{#!python
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?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10952> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC