Boost logo

Boost :

From: Mike Conley (conley.141_at_[hidden])
Date: 2003-06-02 06:15:30


The type_traits webpage contains the following, from which
is_base_and_derived should be removed:

>Note that both is_convertible, and is_base_and_derived can produce
>compiler errors if the convertion is ambiguous:
>
>struct A {};
>struct B : A {};
>struct C : A {};
>struct D : B, C {};
>bool const x = boost::is_base_and_derived<A,D>::value; // error
>bool const y = boost::is_convertible<D*,A*>::value; // error

--
Mike Conley


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