Boost logo

Boost :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2007-05-09 06:17:24

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.

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