From 550121013fc5992d32cd0375d5a9c5c9512aa7f8 Mon Sep 17 00:00:00 2001 From: Kai Ni Date: Wed, 3 Feb 2010 20:12:16 +0000 Subject: [PATCH] fix const string problem in print --- cpp/Rot2.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpp/Rot2.h b/cpp/Rot2.h index ab9b44a66..0ddfadf21 100644 --- a/cpp/Rot2.h +++ b/cpp/Rot2.h @@ -79,8 +79,7 @@ namespace gtsam { // Lie group functions /** Global print calls member function */ - inline void print(const Rot2& r, std::string& s) { r.print(s); } - inline void print(const Rot2& r) { r.print(); } + inline void print(const Rot2& r, const std::string& s = "") { r.print(s); } /** Dimensionality of the tangent space */ inline size_t dim(const Rot2&) { return 1; }