[mpl] apply is_base_and_derived to class template and deduce types

I have a base class template "template

AMDG Ares Lagae wrote:
I have a base class template "template
struct base {};" and a derived class "derived" that publicly derives from several instantiations from the base class template. Given a type "T1", is it possible to decide if the class "derived" is derived from a base "base
" and deduce the unknown type "X"?
I couldn't think of a way to do this without typeof.
(At least without enumerating all the possible
first template arguments)
#include
participants (2)
-
Ares Lagae
-
Steven Watanabe