Boost logo

Boost Users :

Subject: [Boost-users] Unicode option in program_options
From: John Dlugosz (JDlugosz_at_[hidden])
Date: 2010-08-12 18:35:36

Here is the problematic part:

namespace po = boost::program_options;
 po::options_description common_options("common options");
    ("help", po::bool_switch(&helpflag), "produce help message")
       "the directory")

I get a huge speil of error output, concluding with

see reference to class template instantiation 'boost::program_options::typed_value<T,charT>' being compiled

Reading "Unicode Support" in the docs, it sounds like design decisions rather than any how-to, but the beginning is clear: it is possible to mix wide and narrow options, and aggregating options from libraries or parsing different input sources should work.

So why does it barf at the use of a wide-char string as a desired option? I expect that the wchar_t* form of the parser will pass that unchanged to this option, and the char* form should convert.

What am I missing?


(sorry about the footer)

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at