From 8ce30c6a69a64f37a866541f66e3f242fe901f49 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 13:20:45 +0200 Subject: Chrono: convert SongTime to SignedSongTime implicitly --- src/Chrono.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/Chrono.hxx b/src/Chrono.hxx index 521e03c35..90e4a6927 100644 --- a/src/Chrono.hxx +++ b/src/Chrono.hxx @@ -110,6 +110,11 @@ public: template explicit constexpr SignedSongTime(T t):Base(t) {} + /** + * Allow implicit conversion from SongTime to SignedSongTime. + */ + constexpr SignedSongTime(SongTime t):Base(t) {} + static constexpr SignedSongTime zero() { return SignedSongTime(Base::zero()); } -- cgit v1.2.3