diff --git a/gtsam/base/TestableAssertions.h b/gtsam/base/TestableAssertions.h index e79d6b764..00ab79d30 100644 --- a/gtsam/base/TestableAssertions.h +++ b/gtsam/base/TestableAssertions.h @@ -30,7 +30,7 @@ namespace gtsam { /** * Equals testing for basic types */ -static bool assert_equal(const Index& expected, const Index& actual, double tol = 0.0) { +inline bool assert_equal(const Index& expected, const Index& actual, double tol = 0.0) { if(expected != actual) { std::cout << "Not equal:\nexpected: " << expected << "\nactual: " << actual << std::endl; return false; @@ -327,7 +327,7 @@ bool assert_container_equality(const V& expected, const V& actual) { /** * Compare strings for unit tests */ -static bool assert_equal(const std::string& expected, const std::string& actual) { +inline bool assert_equal(const std::string& expected, const std::string& actual) { if (expected == actual) return true; printf("Not equal:\n");