Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2003-03-13 12:36:12

Thomas Witt wrote:
> Hi,
> I am biased anyway, but I would vote for reverting the lexical_cast
> changes in RC_1_30_0.

I was just looking at the new lexical_cast implementation and unless I
messed up with updating my tree to RC_1_30_0 the documentation needs to
be fixed as well.

AFAICS the documentation nowhere mentions the change in semantics for
string handling. Furthermore the documentation seems to be misleading
with respect to the new semantics.

"Returns the result of streaming arg into a std::stringstream and then
out as a Target object. Note that spaces are significant in any
conversion and are not skipped."

IIUC, this is no longer true for std::basic_string.

I cannot resist, I particularly like this one.

"Where non-stream-based conversions are required, lexical_cast is the
wrong tool for the job, and is not special-cased for such scenarios."

To me its a clear argument for not changing the std::basic_string semantics.

I got the impression that the majority on the list want's the change in
string semantics and I am willing to accept this. But I would really
like to see the documentation clearly state that strings are handled


Dipl.-Ing. Thomas Witt
Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet 
voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001

Boost list run by bdawes at, gregod at, cpdaniel at, john at