Reverted ill-advised quick fix for concepts - now no-op.
parent
81ce4f4d9e
commit
179575764a
|
@ -14,21 +14,12 @@
|
||||||
#include <boost/concept/requires.hpp>
|
#include <boost/concept/requires.hpp>
|
||||||
#include <boost/concept_check.hpp>
|
#include <boost/concept_check.hpp>
|
||||||
#define GTSAM_CONCEPT_ASSERT(concept) BOOST_CONCEPT_ASSERT((concept))
|
#define GTSAM_CONCEPT_ASSERT(concept) BOOST_CONCEPT_ASSERT((concept))
|
||||||
#define GTSAM_CONCEPT_ASSERT1(concept) BOOST_CONCEPT_ASSERT((concept))
|
|
||||||
#define GTSAM_CONCEPT_ASSERT2(concept) BOOST_CONCEPT_ASSERT((concept))
|
|
||||||
#define GTSAM_CONCEPT_ASSERT3(concept) BOOST_CONCEPT_ASSERT((concept))
|
|
||||||
#define GTSAM_CONCEPT_ASSERT4(concept) BOOST_CONCEPT_ASSERT((concept))
|
|
||||||
#define GTSAM_CONCEPT_REQUIRES(concept, return_type) BOOST_CONCEPT_REQUIRES(((concept)), (return_type))
|
#define GTSAM_CONCEPT_REQUIRES(concept, return_type) BOOST_CONCEPT_REQUIRES(((concept)), (return_type))
|
||||||
#else
|
#else
|
||||||
// These do something sensible:
|
// This does something sensible:
|
||||||
#define BOOST_CONCEPT_USAGE(concept) void check##concept()
|
#define BOOST_CONCEPT_USAGE(concept) void check##concept()
|
||||||
// TODO(dellaert): would be nice if it was a single macro...
|
// These just ignore the concept checking for now:
|
||||||
#define GTSAM_CONCEPT_ASSERT(concept) concept checkConcept [[maybe_unused]]
|
#define GTSAM_CONCEPT_ASSERT(concept)
|
||||||
#define GTSAM_CONCEPT_ASSERT1(concept) concept checkConcept1 [[maybe_unused]]
|
|
||||||
#define GTSAM_CONCEPT_ASSERT2(concept) concept checkConcept2 [[maybe_unused]]
|
|
||||||
#define GTSAM_CONCEPT_ASSERT3(concept) concept checkConcept3 [[maybe_unused]]
|
|
||||||
#define GTSAM_CONCEPT_ASSERT4(concept) concept checkConcept4 [[maybe_unused]]
|
|
||||||
// This one just ignores concept for now:
|
|
||||||
#define GTSAM_CONCEPT_REQUIRES(concept, return_type) return_type
|
#define GTSAM_CONCEPT_REQUIRES(concept, return_type) return_type
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue