|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-07-06 06:51:30
> It's only minor:
>
> But boost::filesystem and boost::date_time have string conversion
> methods such as
>
> string()
> native_file_string()
> to_simple_string()
>
> where as boost::format (and also stringstreams in the STL) have
>
> str()
>
> I don't know about the other libraries? Is there a standard for this in
> boost or is it up to the libraries? Should they be commonised?
Ideally, yes. I would prefer .c_str() for const char* conversion and str()
for std::string
cheers
Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk