2010/4/29 Francesco Biscani <bluescarni@gmail.com>
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.