Boost logo

Boost :

Subject: Re: [boost] Review Request: Introduction of boost::string namespace and string-conversion functions
From: a k (akrzemi1_at_[hidden])
Date: 2009-02-12 10:16:46


> From the user point the interface I'd like to propose might look like the
> following:
>
> int i;
> std::string s;
>
> 1) int i_from_s = boost::string::to<int>(s); // throws
> 2) std::string s_from_i = boost::string::from<int>(i);
> 3) bool s_is_i = boost::string::is<int>(i);

Do you consider adding an extra parameter for locale, to get rid of
dependency on the global one?
Regards,
&rzej


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