Boost logo

Boost :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2004-09-06 15:02:06


Stefan Slapeta wrote:
> though this wouldn't be the usual approach as in other languages. I
> would go this way and add an optional parameter in boost::lexial_cast
> which would result in a syntax similar to .NET and Java:
>
> string s = lexical_cast<std::string>(1231.23, "#,#.00");

Fine idea. Would it work the other way, too, eg.

double d = lexical_cast<double>("1,231.23", "#,#.00");

?

B.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk