Boost logo

Boost :

From: Russell Hind (rhind_at_[hidden])
Date: 2003-07-07 03:37:06


Jeff Garland wrote:
>
> In date-time there are several 'to_string' functions that provide
> different ouput formats so a single 'str()' method isn't going
> to be enough. As for c_str(), you can use this once you have
> std::string. From my view there is no point in trying to force
> fit this functionality into an inadequate interface. Finally,
> by keeping these as free functions dates and times can be used
> without including I/O headers which the 'to_string' functions
> use.
>

I'm not saying replace all the XXXX_string methods with a str() but
jshould we have

str()
native_file_str()
to_simple_str()

or

string()
native_file_string()
to_simple_string()

just to commonise things.

Filesystem has a string() method. stringstreams use str(). I also
agree that boost libraries don't need a c_str() method since this can
come from the string() (or str()) method.

Thanks

Russell


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