base/concepts.h
Go to the documentation of this file.
1 /*
2  * concepts.h
3  *
4  * @date Dec 4, 2014
5  * @author Mike Bosse
6  * @author Frank Dellaert
7  */
8 
9 #pragma once
10 
11 #ifdef GTSAM_USE_BOOST_FEATURES
12 #include <boost/concept_check.hpp>
13 #include <boost/concept/assert.hpp>
14 #include <boost/concept/requires.hpp>
15 #include <boost/concept_check.hpp>
16 #define GTSAM_CONCEPT_ASSERT(concept) BOOST_CONCEPT_ASSERT((concept))
17 #define GTSAM_CONCEPT_REQUIRES(concept, return_type) BOOST_CONCEPT_REQUIRES(((concept)), (return_type))
18 #else
19 // This does something sensible:
20 #define BOOST_CONCEPT_USAGE(concept) void check##concept()
21 // These just ignore the concept checking for now:
22 #define GTSAM_CONCEPT_ASSERT(concept) static_assert(true, "")
23 #define GTSAM_CONCEPT_REQUIRES(concept, return_type) return_type
24 #endif
25 


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:17