From c0819adb8f3d0830c277a0d9ced61d34589f2fe4 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Fri, 22 Jun 2012 15:43:33 +0000 Subject: [PATCH] Changed static to inline in TestableAssertions.h to avoid warnings --- gtsam/base/TestableAssertions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");