
28 Sep
2004
28 Sep
'04
11:54 a.m.
Alexander Nasonov <alnsn@yandex.ru> 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