I want to check whether the class X has ANY base class using type utilities in C++.
For example:
class X : public Y
{
}
static_assert(std::has_base_class<X>::value, "") // OK
but:
class X
{
}
static_assert(std::has_base_class<X>::value, "") // Failed
Does anything like my imaginary has_base_class exist in the standard library? Thanks!