From 1e29151974ab13d61f7c77473e8c9590f833c6d2 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Tue, 14 Jun 2016 17:36:54 +0200 Subject: [PATCH] Fixed string conversion for Timed --- src/Timed.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Timed.h b/src/Timed.h index 356879f..042c185 100644 --- a/src/Timed.h +++ b/src/Timed.h @@ -120,7 +120,7 @@ private: TimeRange timeRange; }; -template -std::ostream& operator<<(std::ostream& stream, const Timed& timedValue) { +template<> +inline std::ostream& operator<<(std::ostream& stream, const Timed& timedValue) { return stream << "Timed(" << timedValue.getTimeRange().getStart() << ", " << timedValue.getTimeRange().getEnd() << ")"; }