Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2002-05-10 00:59:02


BTW, (it was probaby already discussed, and I just miss it)
Why couldn't we implement is_convertible like this:
struct convertible
{
    template<typename From>
    struct from
    {
        template<typename To>
        struct to
        {
            enum { value = .... };
        };
    };
};

The usage would be more expressive:
is_convertible::from<Type1>::to<Type2>::value

Gennadiy.


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