
15 Jul
2010
15 Jul
'10
7:09 a.m.
I'd like to do something like: boost::uint16_t b(std::lexical_castboost::uint16_t("xa")); I have no control of the string stream that lexical_cast uses internally, so how could I implement this? P.S.: There are a lot of false statements made about this functionality on the web, some people claim that boost::lexical_cast<> can do the conversion out of the box, but this is not so in my tests.