diff --git a/example/ex3/ex3.cpp b/example/ex3/ex3.cpp index b1a9b1b8..1af80d60 100644 --- a/example/ex3/ex3.cpp +++ b/example/ex3/ex3.cpp @@ -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 t = q::minutes(2); - constexpr stdquantity d = q::kilometers(2.5); + constexpr quantity t = q::minutes(2); + constexpr quantity d = q::kilometers(2.5); constexpr auto t2 = t*t; constexpr auto a = d / (t*t); diff --git a/include/xo/unit/quantity.hpp b/include/xo/unit/quantity.hpp index 70673ad9..ecaef42a 100644 --- a/include/xo/unit/quantity.hpp +++ b/include/xo/unit/quantity.hpp @@ -158,10 +158,6 @@ namespace xo { Repr scale_ = Repr{}; }; - template < natural_unit NaturalUnit, - typename Repr = double > - using stdquantity = quantity; - template constexpr auto rescale(const Quantity & x, const scaled_unit & su) {