Boost logo

Boost :

From: Maxim Yegorushkin (e-maxim_at_[hidden])
Date: 2004-09-28 08:00:21


David Abrahams <dave_at_[hidden]> wrote:

> 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.

[]

>> 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.

I would like a cast to do cast only, not normalize. For normalize I would
use something named appropriately, so that a reader of my code wouldn't be
obfuscated.

-- 
Maxim Yegorushkin

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