diff options
author | Max Kellermann <max@duempel.org> | 2014-08-29 13:20:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-29 13:20:58 +0200 |
commit | 8ce30c6a69a64f37a866541f66e3f242fe901f49 (patch) | |
tree | 3fde5f12bd17a3ef85b52ff7bea83a06bfa41609 | |
parent | 9fcaff749f2325465feb423aaeeece1bcefa8c5f (diff) | |
download | mpd-8ce30c6a69a64f37a866541f66e3f242fe901f49.tar.gz mpd-8ce30c6a69a64f37a866541f66e3f242fe901f49.tar.xz mpd-8ce30c6a69a64f37a866541f66e3f242fe901f49.zip |
Chrono: convert SongTime to SignedSongTime implicitly
Diffstat (limited to '')
-rw-r--r-- | src/Chrono.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
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<typename T> 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()); } |