|
Boost Users : |
From: Stefan Felkel (Stefan.Felkel_at_[hidden])
Date: 2003-07-24 07:07:58
I have problems compiling the following piece of code under Microsoft Visual C++
6.0 with UNICODE defined. The compiler complains about a missing operator<<.
What can I do in order to get this programme compiled ?
#include <iostream>
#include <boost/lexical_cast.hpp>
int main( int argc, char * argv [] )
{
std::wcout << boost::lexical_cast<std::wstring>( std::wstring( L"test" )
).c_str() << L"\n";
return 0;
}
c:\programme\boost_1_30_0\boost\lexical_cast.hpp(148): error C2679: binary '<<':
no operator defined which takes a right-hand operand of type 'const wstring' (or
there is no acceptable conversion)
c:\programme\boost_1_30_0\boost\lexical_cast.hpp(146): while compiling
class-template member function 'bool
boost::detail::lexical_stream<wstring,wstring>::operator <<(const wstring &)'
Thanks in advance,
Stefan
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