
Hi,
On 2 December 2010 22:27, Claude
Hi!
It is possibile to transform a string representing a hexadecimal number in the format "0xnumber" or "number" (without "0x") in an integer with lexical_cast<>?
There's another option I've been working on, construe_cast, which can
be found here: https://github.com/VeXocide/construe_cast. It's a
replacement for lexical_cast which I hope will make it into boost one
day. The main difference is that whilst lexical_cast uses iostreams
for its conversion, construe_cast is based off of boost.spirit. This
means it's considerable faster at run-time and I've added support for
tags some time ago, thus you can use:
boost::construe_cast