From cebd4631d292c5b4e8edc165c1daa805b1909f1f Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Tue, 21 Feb 2012 22:18:37 +0000 Subject: [PATCH] Added missing argument that was causing method hiding --- tests/testExtendedKalmanFilter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testExtendedKalmanFilter.cpp b/tests/testExtendedKalmanFilter.cpp index b38e7e3fe..54761ddc9 100644 --- a/tests/testExtendedKalmanFilter.cpp +++ b/tests/testExtendedKalmanFilter.cpp @@ -153,10 +153,10 @@ public: } /* print */ - virtual void print(const std::string& s = "") const { + virtual void print(const std::string& s = "", const KeyFormatter& keyFormatter = DefaultKeyFormatter) const { std::cout << s << ": NonlinearMotionModel\n"; - std::cout << " TestKey1: " << DefaultKeyFormatter(key1()) << std::endl; - std::cout << " TestKey2: " << DefaultKeyFormatter(key2()) << std::endl; + std::cout << " TestKey1: " << keyFormatter(key1()) << std::endl; + std::cout << " TestKey2: " << keyFormatter(key2()) << std::endl; } /** Check if two factors are equal. Note type is IndexFactor and needs cast. */ @@ -291,9 +291,9 @@ public: } /* print */ - virtual void print(const std::string& s = "") const { + virtual void print(const std::string& s = "", const KeyFormatter& keyFormatter = DefaultKeyFormatter) const { std::cout << s << ": NonlinearMeasurementModel\n"; - std::cout << " TestKey: " << DefaultKeyFormatter(key()) << std::endl; + std::cout << " TestKey: " << keyFormatter(key()) << std::endl; } /** Check if two factors are equal. Note type is IndexFactor and needs cast. */