From: srit Date: Wed, 6 Oct 2010 15:38:45 +0000 (+0000) Subject: ostream does not handle std::string (check http://www.cplusplus.com/reference/iostrea... X-Git-Tag: v1.2.0~351 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b1afe238d2f4c78245e1824afd251e08b5216311;p=clitk.git ostream does not handle std::string (check http://www.cplusplus.com/reference/iostream/ostream/operator%3C%3C/) --- diff --git a/common/clitkTimer.cxx b/common/clitkTimer.cxx index d6987fa..b165b4d 100644 --- a/common/clitkTimer.cxx +++ b/common/clitkTimer.cxx @@ -99,7 +99,7 @@ void clitk::Timer::Print(std::ostream & os) const //==================================================================== void clitk::Timer::Print(std::string text, std::ostream & os) const { - os << text; + os << text.c_str(); Print(os); } //====================================================================