Boost logo

Boost :

Subject: Re: [boost] Formal Review Request: Boost.String.Convert
From: David Abrahams (dave_at_[hidden])
Date: 2009-02-17 15:21:23


on Tue Feb 17 2009, Emil Dotchevski <emildotchevski-AT-gmail.com> wrote:

> I like the idea of a library for converting to and from strings.
>
> I have two comments:
>
> 1) I don't like the string namespace. I would prefer to use
> boost::to_string and boost::from_string:
>
> std::string s=boost::to_string(x)
>
> reads better than
>
> std::string s=boost::string::to(x).

I think so too; much more straightforward.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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