
fisrt of all: ok, I erred in the // (they did not appear in the original
program).
Re: vers., it's boost vers. 1_30_0
here's more info re the error, even admitting your changes:
----------
------ Build started: Project: UnsignedShort, Configuration: Debug
Win32 ------
Compiling...
UnsignedShort.cpp
c:\Boost\boost_1_30_0\boost\lexical_cast.hpp(147) : error C2679: binary '<<'
: no operator found which takes a right-hand operand of type 'const
std::string' (or there is no acceptable conversion)
c:\Boost\boost_1_30_0\boost\lexical_cast.hpp(146) : while compiling
class-template member function 'bool
boost::detail::lexical_stream
If possible, please advise.
using lexical cast w/unsigned short fails, on MSVC7:
#include
#include <iostream> int _tmain(int argc, _TCHAR* argv[]) { std::string aStr("2"); unsigned short i = boost::lexical_cast<unsigned short>(aStr); \\ ERROR!
std::cout << i << std::endl; return 0; }
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/