Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-31 01:50:25


Elisha Berns wrote:

> // process program options
> options_description desc("allowed options");
> desc.add_options()
> // First parameter describes option name/short name
> // The second is parameter to option
> // The third is description
> ("help,h", "print usage message")
> ("validate,v", "validate xml file")
> ("xml", wvalue<wstring>(&strXmlFile), "xml file")
> ("xsd", wvalue<wstring>(&strXsdFile), "xsd file");
>
> variables_map vm;
> store(wcommand_line_parser(argc, argv).options(desc).run(), vm);
>
> Here's the errors:
>
> c:\Libraries\Boost\boost_1_32_0\boost\lexical_cast.hpp(144) : error
> C2679: binary '<<' : no operator found which takes a right-hand operand
> of type 'const std::basic_string<_Elem,_Traits,_Ax>' (or there is no

I believe this error happens with wchar_t is not considered as native type
by the VC7.* compiler. Try passing the /Zc:wchar_t option.

- 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