use GTSAM_CONCEPT_USAGE in lieu of BOOST_CONCEPT_USAGE

release/4.3a0
Varun Agrawal 2025-03-09 12:10:06 -04:00
parent 51d7483da6
commit d5aa068a0c
1 changed files with 2 additions and 1 deletions

View File

@ -17,9 +17,10 @@
#include <boost/concept_check.hpp>
#define GTSAM_CONCEPT_ASSERT(concept) BOOST_CONCEPT_ASSERT((concept))
#define GTSAM_CONCEPT_REQUIRES(concept, return_type) BOOST_CONCEPT_REQUIRES(((concept)), (return_type))
#define GTSAM_CONCEPT_USAGE BOOST_CONCEPT_USAGE
#else
// This does something sensible:
#define BOOST_CONCEPT_USAGE(concept) void check##concept()
#define GTSAM_CONCEPT_USAGE(concept) void check##concept()
// These just ignore the concept checking for now:
#define GTSAM_CONCEPT_ASSERT(concept) static_assert(true, "")
#define GTSAM_CONCEPT_REQUIRES(concept, return_type) return_type