
9 May
2007
9 May
'07
10:17 a.m.
Dean Michael Berris wrote:
I particularly don't see why the constraint that the standard streams imposes in this case should affect the behavior and/or semantics of lexical_cast<T> -- because if I really for instance wanted to use a standard stream (which has completely different semantics from lexical_cast<T>)
How is it different semantically?
then I would have used that. Being that lexical_cast<T> uses a standard stream underneath the hood should be an implementation detail, and should not concern the users of lexical_cast<T>
It is not an implementation detail. That's how you can overload it, making lexical_cast generic.