xo-unit: retire stdquantity<> no longer streamlines quantity<>
This commit is contained in:
parent
591a20c151
commit
00245ad378
2 changed files with 2 additions and 7 deletions
|
|
@ -8,13 +8,12 @@ int
|
|||
main () {
|
||||
namespace q = xo::qty::qty;
|
||||
namespace u = xo::qty::nu;
|
||||
using xo::qty::stdquantity;
|
||||
using xo::qty::quantity;
|
||||
using xo::flatstring;
|
||||
using namespace std;
|
||||
|
||||
constexpr stdquantity<u::second> t = q::minutes(2);
|
||||
constexpr stdquantity<u::meter> d = q::kilometers(2.5);
|
||||
constexpr quantity<u::second> t = q::minutes(2);
|
||||
constexpr quantity<u::meter> d = q::kilometers(2.5);
|
||||
|
||||
constexpr auto t2 = t*t;
|
||||
constexpr auto a = d / (t*t);
|
||||
|
|
|
|||
|
|
@ -158,10 +158,6 @@ namespace xo {
|
|||
Repr scale_ = Repr{};
|
||||
};
|
||||
|
||||
template < natural_unit<std::int64_t> NaturalUnit,
|
||||
typename Repr = double >
|
||||
using stdquantity = quantity<NaturalUnit, Repr>;
|
||||
|
||||
template <typename Quantity, typename Int, typename Int2x>
|
||||
constexpr auto
|
||||
rescale(const Quantity & x, const scaled_unit<Int, Int2x> & su) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue