made print virtual

release/4.3a0
dellaert 2015-02-26 15:33:27 +01:00
parent 3b808e644b
commit 61ba2f080c
1 changed files with 2 additions and 2 deletions

View File

@ -71,10 +71,10 @@ public:
* @param s optional string naming the factor
* @param keyFormatter optional formatter useful for printing Symbols
*/
void print(const std::string& s = "") const {
virtual void print(const std::string& s = "") const {
std::cout << s << "CameraSet, cameras = \n";
for (size_t k = 0; k < this->size(); ++k)
this->at(k).print();
this->at(k).print(s);
}
/// equals