|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-08 09:41:48
Ah, yes, now I remember. When he first proposed it, I was very anxious to
use Fernando's replacement for my old, crufty, under-tested code written
with insufficient experience. Bjorn, if you'd like to write documentation
and Fernando agrees to it, I'll be happy to replace my implementation
wholesale with a joint submission from the two of you.
-Dave
----- Original Message -----
From: "Fernando Cacciola" <fcacciola_at_[hidden]>
Bjorn Karlsson
Hi.
I presented some time ago an improved implementation of numeric_cast<> which
I believe solves the problems you mentioned.
I haven't submitted it for formal review yet because I still have to write
its formal documentation, and I'm having very little time (I can read
messages from this list and make short comments from time to time, but I'm
too busy to sit down and write formal HTML documents right now).
However, the implementation and test bed are complete.
Although I do have to write the docs, the headers and test bed themselves
are fully documented, so you won't have problems trying it.
This implementation uses some heavy metaprogramming in order to achieve
maximum optimization. I did my best at writing the metaprogramming as
portable as possible, but it could be the case the your compiler doesn't
support it. In that case I'll be glad to fix it.
You can get it from
http://groups.yahoo.com/group/boost/files/improved_numeric_cast/numeric_cast
.zip
Fernando Cacciola
Sierra s.r.l.
fcacciola_at_[hidden]
www.gosierra.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk