Chrono: convert SongTime to SignedSongTime implicitly

This commit is contained in:
Max Kellermann 2014-08-29 13:20:45 +02:00
parent 9fcaff749f
commit 8ce30c6a69

View File

@ -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());
}