Changed static to inline in TestableAssertions.h to avoid warnings
parent
d8703b1c93
commit
c0819adb8f
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue