Get the descendant among two relatives. More...
#include <roboptim/core/detail/utility.hh>
Public Member Functions | |
BOOST_MPL_ASSERT_MSG ((boost::mpl::or_< boost::is_base_of< Type1, Type2 >, boost::is_base_of< Type2, Type1 > >::value), ONE_SHOULD_INHERIT_FROM_THE_OTHER,(Type1 &, Type2 &)) | |
Get the descendant among two relatives.
Type1 and Type2 are expected to be base/derivative of one another.
Type1 | first relative. |
Type2 | second relative. |
roboptim::detail::get_descendant< Type1, Type2 >::BOOST_MPL_ASSERT_MSG | ( | (boost::mpl::or_< boost::is_base_of< Type1, Type2 >, boost::is_base_of< Type2, Type1 > >::value) | , |
ONE_SHOULD_INHERIT_FROM_THE_OTHER | , | ||
(Type1 &, Type2 &) | |||
) |