Boost logo

Boost :

Subject: Re: [boost] Formal Review Request: Boost.String.Convert
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-02-17 13:55:13


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).

2) What's the motivation for the convert function? Is it supposed to
convert anything to anything? (It seems to me the motivation is to
mimic the lexical_cast functionality but I don't think that's
necessary.)

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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