xo-unit: + repr argument to stdquantity

This commit is contained in:
Roland Conybeare 2024-05-03 21:37:22 -04:00
commit 83424e1ee3
3 changed files with 6 additions and 5 deletions

View file

@ -157,8 +157,9 @@ namespace xo {
Repr scale_ = Repr{};
};
template <natural_unit<::std::int64_t> NaturalUnit = natural_unit<::std::int64_t>()>
using stdquantity = xo::qty::quantity<double, ::std::int64_t, NaturalUnit>;
template <typename Repr = double,
natural_unit<std::int64_t> NaturalUnit = natural_unit<std::int64_t>()>
using stdquantity = quantity<Repr, std::int64_t, NaturalUnit>;
template <typename Quantity, typename Int, typename Int2x>
constexpr auto