Boost logo

Boost :

From: Bjorn Karlsson (bjorn.karlsson_at_[hidden])
Date: 2002-01-24 10:35:12


That is, of course, boost/to_string.hpp.

Bjorn
-----Original Message-----
From: Bjorn Karlsson
Sent: den 24 januari 2002 16:34
To: 'boost_at_[hidden]'
Subject: RE: [boost] to_string(v)

> From: Peter Dimov [mailto:pdimov_at_[hidden]]
>
> 1)
>
> #include <boost/lexical_cast.hpp>
> #include <string>
> #include <iostream>
>
> int main()
> {
> std::cout << boost::lexical_cast<std::string>("this is a test");
> }
>
> 2) to_string() is the established, novice-friendly name for
> this idiom; even
> with a working lexical_cast, I'd prefer to_string when I want
> to_string
> behavior since it leaves less room for errors.
>
I agree. Is it to small to deserve its own header (boost/to_string)?
Bjorn

Info: http://www.boost.org Send unsubscribe requests to:
<mailto:boost-unsubscribe_at_[hidden]>

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



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