5 #ifndef __pinocchio_utils_check_hpp__
6 #define __pinocchio_utils_check_hpp__
8 #include <boost/type_traits/is_floating_point.hpp>
15 bool default_value =
true,
16 bool is_real_valued = boost::is_floating_point<Scalar>::value>
19 static bool run(
const void *)
25 template<
typename Scalar,
bool default_value>
28 static bool run(
const void * expression_ptr)
30 return *
static_cast<const bool *
>(expression_ptr);
34 template<
typename Scalar,
typename Any>
35 bool check_expression_if_real(
const Any & expression)
40 template<
typename Scalar,
bool default_value,
typename Any>
41 bool check_expression_if_real(
const Any & expression)
43 return check_expression_if_real_valued<Scalar, default_value>::run(
44 static_cast<const void *
>(&expression));
Main pinocchio namespace.