Changed static to inline in TestableAssertions.h to avoid warnings

release/4.3a0
Richard Roberts 2012-06-22 15:43:33 +00:00
parent d8703b1c93
commit c0819adb8f
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ namespace gtsam {
/** /**
* Equals testing for basic types * 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) { if(expected != actual) {
std::cout << "Not equal:\nexpected: " << expected << "\nactual: " << actual << std::endl; std::cout << "Not equal:\nexpected: " << expected << "\nactual: " << actual << std::endl;
return false; return false;
@ -327,7 +327,7 @@ bool assert_container_equality(const V& expected, const V& actual) {
/** /**
* Compare strings for unit tests * 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) if (expected == actual)
return true; return true;
printf("Not equal:\n"); printf("Not equal:\n");