Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-09-28 06:54:45


Alexander Nasonov <alnsn_at_[hidden]> writes:

> David Abrahams wrote:
>> I can think of other uses. You might lexical_cast T->T in order to
>> normalize the value somehow.
>
> Normalize? Hmm. How do you normalize int or char? ;-)

You're just joking, right? You wouldn't do this for simple builtins.

> I can think of UDT that has some non-serialized members and those
> members you could reset. lexical_cast is not a best tool for this,
> IMO.

Maybe, maybe not. Sometimes convenience is more important than doing
it the best way. It's almost always better to provide uniformity than
to have special cases that break because they *might* just be an
error.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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