]> Creatis software - clitk.git/commitdiff
ostream does not handle std::string (check http://www.cplusplus.com/reference/iostrea...
authorsrit <srit>
Wed, 6 Oct 2010 15:38:45 +0000 (15:38 +0000)
committersrit <srit>
Wed, 6 Oct 2010 15:38:45 +0000 (15:38 +0000)
common/clitkTimer.cxx

index d6987fa..b165b4d 100644 (file)
@@ -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);
 }
 //====================================================================