29 Apr
2010
29 Apr
'10
7:23 a.m.
2010/4/29 Francesco Biscani
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> {};
is_instance_of from lambda library is what you want (see boost/lambda/detail/is_instance_of.hpp). It's not part of public interface though, so either copy it to your location or use on your own risk. Roman Perepelitsa.