xo-unit: simplify quantity
Always get ratio numerator/denominator type from NaturalUnit
This commit is contained in:
parent
166276c710
commit
3e86011f51
3 changed files with 20 additions and 32 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue