xo-unit: refactor: rev args to stdquantity<> for consistency
This commit is contained in:
parent
822d636812
commit
821ed4f56f
2 changed files with 4 additions and 4 deletions
|
|
@ -13,8 +13,8 @@ main () {
|
|||
using xo::flatstring;
|
||||
using namespace std;
|
||||
|
||||
constexpr stdquantity<double, u::second> t = q::minutes(2);
|
||||
constexpr stdquantity<double, u::meter> d = q::kilometers(2.5);
|
||||
constexpr stdquantity<u::second, double> t = q::minutes(2);
|
||||
constexpr stdquantity<u::meter, double> d = q::kilometers(2.5);
|
||||
|
||||
constexpr auto t2 = t*t;
|
||||
constexpr auto a = d / (t*t);
|
||||
|
|
|
|||
|
|
@ -158,8 +158,8 @@ namespace xo {
|
|||
Repr scale_ = Repr{};
|
||||
};
|
||||
|
||||
template <typename Repr = double,
|
||||
natural_unit<std::int64_t> NaturalUnit = natural_unit<std::int64_t>()>
|
||||
template < natural_unit<std::int64_t> NaturalUnit = natural_unit<std::int64_t>(),
|
||||
typename Repr = double >
|
||||
using stdquantity = quantity<NaturalUnit, Repr>;
|
||||
|
||||
template <typename Quantity, typename Int, typename Int2x>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue