6 Sep 18:00
Re: [lexical_cast] bad_lexical_cast behavior?
Hrvoje Prgeša <hrvoje.prgesa <at> gmail.com>
2008-09-06 16:00:25 GMT
2008-09-06 16:00:25 GMT
And another weirdness: boost::uint64_t max = numeric_limits<boost::uint64_t>::max(); s = lexical_cast<string, boost::uint64_t>(max); BOOST_CHECK_EQUAL(max, lexical_cast<boost::uint64_t>(s)); // crashes: std::bad_cast: bad lexical cast: source type value could not be interpreted as target Converting 64bit unsigned int to it's max value string representation and back results in exception. -- Hrvoje Prgeša
RSS Feed