Boost logo

Boost Users :

From: zh (zhagic_at_[hidden])
Date: 2007-07-16 03:14:01


Vladimir Prus wrote:

> <cut />

Sorry for the delay; I was away from my computer for a couple of days.
So, I even tried your solution before you mentioned it (following the
online manual for Program Options, I presume) and it didn't work.

> 1. Replace char* argv[] with wchar_t *arv[].
> 2. Use 'wstring' as the type of your options, not 'string'.

The compiler (VC8) casts:

error C2665:
'boost::program_options::basic_command_line_parser<charT>::basic_command_line_parser'
: none of the 3 overloads could convert all the argument types
         with
         [
             charT=char
         ]
c:\program
files\boost\boost_1_34_0\boost\program_options\parsers.hpp(98): could be
'boost::program_options::basic_command_line_parser<charT>::basic_command_line_parser(int,charT
*[])'
         with
         [
             charT=char
         ]
while trying to match the argument list '(int, wchar_t *[])'

Your opinion? TIA!


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