
Hi list,
how can I detect if a class inherits from a generic class? E.g.,
template <class Derived>
class base {};
class final: public base<final> {};
I would like to specialise a type trait for all classes deriving from
base<whatever>, possibly using enable_if and is_base_of:
template
::type>: boost::true_type {};
But this is ugly and I'm sure there are much better ways of doing this :) Thanks in advance, Francesco