]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timedelta.h
Use format instead of stringstream in TimeDelta
[libs/core.git] / source / time / timedelta.h
index 0ced98ecd3e7e581795056959895a8941ae3e966..631c4b0554a6549bcc79b810854a4167990cd72e 100644 (file)
@@ -10,7 +10,7 @@ Distributed under the LGPL
 
 #include <time.h>
 #include <sys/time.h>
-#include <ostream>
+#include <msp/strings/lexicalcast.h>
 #include "types.h"
 
 namespace Msp {
@@ -83,7 +83,7 @@ public:
 template<typename T>
 inline TimeDelta operator*(T a, const TimeDelta &t)   { return t*a; }
 
-extern std::ostream &operator<<(std::ostream &, const TimeDelta &);
+void operator<<(LexicalConverter &, const TimeDelta &);
 
 } // namespace Time
 } // namespace Msp