From b1afe238d2f4c78245e1824afd251e08b5216311 Mon Sep 17 00:00:00 2001 From: srit Date: Wed, 6 Oct 2010 15:38:45 +0000 Subject: [PATCH] ostream does not handle std::string (check http://www.cplusplus.com/reference/iostream/ostream/operator%3C%3C/) --- common/clitkTimer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } //==================================================================== -- 2.47.1