Boost logo

Boost :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2007-05-07 10:31:32

Paul A Bristow wrote:
> I also recollect that I never understood why
> zz = lexical_cast<int>("0xffff"); // Fails!
> However I was more concerned about the floating-point problems, now sorted out,
> and I didn't waste any brain activity on it.
That's because all lexical cast does is create a string stream and use
the extractor to get the value out. The int extractor doesn't parse code
style integers. It just looks at the base flag (oct, dec or hex) and
expects the number to be in this format.

Sebastian Redl

Boost list run by bdawes at, gregod at, cpdaniel at, john at