pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
boost-container-limits.hpp
1//
2// Copyright (c) 2019-2021 INRIA
3//
4
5#ifndef __pinocchio_container_boost_container_limits_hpp__
6#define __pinocchio_container_boost_container_limits_hpp__
7
8#include "pinocchio/macros.hpp"
9
10#define PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE_DEFAULT 30
11
12#ifndef PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE
13 #define PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE_DEFAULT
14#endif
15
16#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
17
18#if !defined(BOOST_MPL_LIMIT_LIST_SIZE)
19 // Check the inclusion order
20 #if defined(BOOST_MPL_LIST_HPP_INCLUDED)
21 #error \
22 "You should include pinocchio before the Boost headers (e.g. #include <pinocchio/fwd.hpp>)"
23 #endif
24
25 #define BOOST_MPL_LIMIT_LIST_SIZE PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE
26
27#elif BOOST_MPL_LIMIT_LIST_SIZE < PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE
28 #if defined(BOOST_MPL_LIST_HPP_INCLUDED)
29 #error \
30 "You should include pinocchio before the Boost headers (e.g. #include <pinocchio/fwd.hpp>)"
31 #else
32 #error \
33 "BOOST_MPL_LIMIT_LIST_SIZE value is lower than the value of PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE"
34 #endif
35
36#endif
37
38#endif // ifndef __pinocchio_container_boost_container_limits_hpp__