Boost logo

Boost Users :

From: Charles Schwartz (yg-boost-users_at_[hidden])
Date: 2003-08-15 14:24:00


If possible, please advise.

using lexical cast w/unsigned short fails, on MSVC7:

#include <boost\lexical_cast.hpp>
#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;
}


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