Boost logo

Boost :

From: D-Swat (desertswat_at_[hidden])
Date: 2004-06-16 16:22:42


Hi,

some code:

template <typename DerivedT>
class A
{
BOOST_STATIC_ASSERT((boost::is_convertible<A<DerivedT>*, B*>::value));
[...]
};

class B : public A<B>
{
};

I want to check if the template parameter really specifies a derived type.
But the assert is always false.
How can i solve this?

bye


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