Boost logo

Boost Users :

From: james.jones_at_[hidden]
Date: 2007-03-07 12:10:12


From: "Ovanes Markarian" <om_boost_at_[hidden]>
> Sorry,
>
> I ment enable_if< is_decimal_type<T> >::type. The ::type will be expanded to
> either void or a derivable type.

Maybe I'm misunderstanding, but how can I derive std::numeric_limits from enable_if, since std::numeric_limits is already defined? I can't do this:

namespace std {
template <typename T>
class numeric_limits :
    private boost::enable_if<boost::decimal::is_decimal_type<T> >::type
{
public:
    static T min() { return boost::decimal::decimal_limits<T>::min(); }
};
}

and I can't do this:

namespace std {
template <typename T>
class numeric_limits<T> :
    private boost::enable_if<boost::decimal::is_decimal_type<T> >::type
{
public:
    static T min() { return boost::decimal::decimal_limits<T>::min(); }
};
}

because this is not a specialization.

-
James Jones Administrative Data Mgmt.
Webmaster 375 Raritan Center Pkwy, Suite A
Data Architect Edison, NJ 08837


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net