Boost logo

Boost Users :

From: steve ahlgren (steveahlgren_at_[hidden])
Date: 2005-02-18 12:54:10


Hello :

I would like to use lexical_cast to convert to/from std::wstring on vc
2003 but I'm failing.

These fail :

int foo = boost::lexical_cast< int >( std::wstring( L"1" ) );
std::string bar = boost::lexical_cast< std::string >( std::wstring( L"a" ) );
std::wstring fred = boost::lexical_cast< std::wstring >( std::string(
"Fred" ) );

Any hints would be greatly appreciated and kindly rewarded with good
programming karma.

Thanks in advance;
Steve a.


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