All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
roboptim::detail::get_descendant< Type1, Type2 > Struct Template Reference

Get the descendant among two relatives. More...

#include <roboptim/core/detail/utility.hh>

Inheritance diagram for roboptim::detail::get_descendant< Type1, Type2 >:

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 &))
 

Detailed Description

template<typename Type1, typename Type2>
struct roboptim::detail::get_descendant< Type1, Type2 >

Get the descendant among two relatives.

Type1 and Type2 are expected to be base/derivative of one another.

Template Parameters
Type1first relative.
Type2second relative.

Member Function Documentation

template<typename Type1 , typename Type2 >
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 &)   
)