In this tutorial blog we will learn how to check inheritance at compile time using C++11 type_traits. In c++11 type_traits are compile time meta functions that returns actual type or check whether some type is of a particular type.

Before using type_traits meta functions we need to include below header.

how to check inheritance at compile time using C++11 type_traits std::is_base_of

 

Re:

http://en.cppreference.com/w/cpp/types/is_base_of




Related Contents to follow