
25 Dec
2004
25 Dec
'04
6:18 p.m.
Hello, I am trying to convert from wchar_t to std::string with #include <iostream> #include <sstream> #include <boost/lexical_cast.hpp> int main() { std::cout << boost::lexical_cast<std::string>(L"blah") << std::endl; return 0; } but I get the following error: d:\SDK\boost\include\boost-1_32\boost\lexical_cast.hpp(158) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::basic_stringstream<_Elem,_Traits,_Alloc>::_Mystr' (or there is no acceptable conversion) Any ideas? This is with boost 1.3.2 and VC7.1 Best regards, Georgios