xo-unit: simplify quantity

Always get ratio numerator/denominator type from NaturalUnit
This commit is contained in:
Roland Conybeare 2024-05-07 10:35:54 -04:00
commit 3e86011f51
3 changed files with 20 additions and 32 deletions

View file

@ -10,10 +10,10 @@
namespace xo {
namespace qty {
template < auto NaturalUnit, typename Repr, typename Int2x >
template < auto NaturalUnit, typename Repr >
inline std::ostream &
operator<< (std::ostream & os,
const quantity<NaturalUnit, Repr, Int2x> & x)
const quantity<NaturalUnit, Repr> & x)
{
os << x.scale() << x.abbrev();
return os;