libtemporal: add operator<<() for ratio_t
This commit is contained in:
parent
209908f700
commit
78233b343f
@ -72,3 +72,10 @@ void Temporal::init ()
|
||||
libtemporal_initialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
std::ostream&
|
||||
operator<< (std::ostream& o, Temporal::ratio_t const & r)
|
||||
{
|
||||
return o << r.numerator() << '/' << r.denominator();
|
||||
}
|
||||
|
||||
|
@ -125,4 +125,7 @@ extern void setup_enum_writer ();
|
||||
|
||||
}
|
||||
|
||||
std::ostream& operator<< (std::ostream& o, Temporal::ratio_t const & r);
|
||||
|
||||
|
||||
#endif /* __libpbd_position_types_h__ */
|
||||
|
Loading…
Reference in New Issue
Block a user