Boost C++ Libraries: Ticket #72: a bug when use std::wstring https://svn.boost.org/trac10/ticket/72 <pre class="wiki">VC6 long i = 0; boost::lexical_cast&lt;std::wstring&gt;(i); error C2679: binary '&gt;&gt;' : no operator defined which takes a right-hand operand of type 'class std::basic_string&lt;unsigned short,struct std::char_traits&lt;unsigned short&gt;,class std::all ocator&lt;unsigned short&gt; &gt;' (or there is no acceptable conversion) i modify lexical_cast.hpp /*# ifdef BOOST_LEXICAL_CAST_USE_STRSTREAM std::strstream interpreter; // for out-of-the- box g++ 2.95.2 # else std::stringstream interpreter; # endif*/ # ifdef BOOST_LEXICAL_CAST_USE_STRSTREAM #ifdef UNICODE std::wstrstream interpreter; // for out-of-the-box g++ 2.95.2 #else std::strstream interpreter; #endif # else #ifdef UNICODE std::wstringstream interpreter; #else std::stringstream interpreter; #endif # endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/72 Trac 1.4.3 John Maddock Tue, 30 Aug 2005 14:48:43 GMT status changed https://svn.boost.org/trac10/ticket/72#comment:1 https://svn.boost.org/trac10/ticket/72#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=14804 Now fixed in cvs. </pre> Ticket