Commit 8ce30c6a authored by Max Kellermann's avatar Max Kellermann

Chrono: convert SongTime to SignedSongTime implicitly

parent 9fcaff74
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment