Added missing argument that was causing method hiding

release/4.3a0
Richard Roberts 2012-02-21 22:18:37 +00:00
parent 2213391b4c
commit cebd4631d2
1 changed files with 5 additions and 5 deletions

View File

@ -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. */