Boost logo

Boost :

From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2003-03-13 02:35:19

>From: "Terje Slettebø" <tslettebo_at_[hidden]>

> The new
> version of lexical_cast is Kevlin's own, which he recently made, not my
> proposition. I think his version is better, though, as it's much shorter
> removes duplication.

Just to point out that it's the kind of duplication which is not easily
removed; the new version works differently. The proposition used several
overloaded function templates for the various special cases, whereas the new
version uses a trait technique. Another advantage of the new version is that
it doesn't require special workarounds for compilers lacking partial
ordering of function templates, which the proposition needed.



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