Boost logo

Boost :

From: Chris Weed (chrisweed_at_[hidden])
Date: 2006-06-29 15:18:34


Hi,
It would be nice to have a custom cast for numeric values that could
cast to the same or better precision.

Something like the following wouldn't fail:

boost::any a(3.3f)
double higher_a = numeric_cast<double>(a);

Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk