Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-30 14:46:57


AMDG

Steven Ross wrote:
>> How about using a traits template?
>>
>
> That's worth considering.
> Can I use is_floating_point to mean that the entire value_type can be safely
> cast to an integer?
>

I'm thinking of something more like:

template<class T>
struct default_right_shift;

template<>
struct default_right_shift<float> {
    typedef rightshift type;
};

// ...

In Christ,
Steven Watanabe


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