4.3.0
|
|
Freundlich's C++ toolkit |
Like std::is_base_of
, but only works on complete types.
std::is_base_of
is undefined behavior if the Derived type is incomplete, which is another source of mistakes. This class, instead, checks if both Base and Derived are complete.
Base | A complete type |
Derived | A complete type |
Public Member Functions | |
FCPPT_ASSERT_COMPLETE (Base) | |
FCPPT_ASSERT_COMPLETE (Derived) | |
fcppt::type_traits::is_base_of< Base, Derived >::FCPPT_ASSERT_COMPLETE | ( | Base | ) |
fcppt::type_traits::is_base_of< Base, Derived >::FCPPT_ASSERT_COMPLETE | ( | Derived | ) |