Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-12-12 07:43:37


Robert Bielik wrote:

> std::wstring strValue;
> po::options_description desc("Allowed options");
> desc.add_options()
> ("help,h", "Produce help message")
> ("string,s", po::value<std::wstring>(&strValue), "A string value");

Did you read:

        http://www.boost.org/doc/html/program_options/howto.html#id1592999

It say to use 'wvalue' function, as opposed to 'value'.

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net