pinocchio 4.1.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#pragma once
6
7#include "pinocchio/macros.hpp"
8
9#define PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE_DEFAULT 30
10
11#ifndef PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE
12 #define PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE_DEFAULT
13#endif
14
15#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
16
17#if !defined(BOOST_MPL_LIMIT_LIST_SIZE)
18 // Check the inclusion order
19 #if defined(BOOST_MPL_LIST_HPP_INCLUDED)
20 #error \
21 "You should include pinocchio before the Boost headers (e.g. #include <pinocchio/fwd.hpp>)"
22 #endif
23
24 #define BOOST_MPL_LIMIT_LIST_SIZE PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE
25
26#elif BOOST_MPL_LIMIT_LIST_SIZE < PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE
27 #if defined(BOOST_MPL_LIST_HPP_INCLUDED)
28 #error \
29 "You should include pinocchio before the Boost headers (e.g. #include <pinocchio/fwd.hpp>)"
30 #else
31 #error \
32 "BOOST_MPL_LIMIT_LIST_SIZE value is lower than the value of PINOCCHIO_BOOST_MPL_LIMIT_CONTAINER_SIZE"
33 #endif
34
35#endif