From 00245ad37898a959fb5bb027312d9ae9f8830bc0 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 3 May 2024 22:07:05 -0400 Subject: [PATCH] xo-unit: retire stdquantity<> no longer streamlines quantity<> --- example/ex3/ex3.cpp | 5 ++--- include/xo/unit/quantity.hpp | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) 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) {