Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2002-11-11 13:48:47


Hi All!

Suppose I'm writing some generic piece of numeric code that can be
instantiated with a User Defined Type (UDT).
And further suppose that I need to detect whether the generic numeric type
represents either integer or floating point values.
Can I use type_traits is_integral<> (or is_float<>)? That is, is the user
allowed to provide her own specializations of this templates?
If not, how should I let the user tell whether her numeric UDT is
integer/float/signed/etc...?

TIA,

Fernando Cacciola


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