From 862187c69df055927f06fe6a7d4fa7215e8fdebd Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 3 May 2024 21:55:25 -0400 Subject: [PATCH] xo-unit: tidy: remove stray TYPE_INFERENCE_EXPERIMENT debris --- include/xo/unit/quantity_iostream.hpp | 6 +----- utest/quantity.test.cpp | 10 ++-------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/include/xo/unit/quantity_iostream.hpp b/include/xo/unit/quantity_iostream.hpp index d2ddd7f9..e6f34d75 100644 --- a/include/xo/unit/quantity_iostream.hpp +++ b/include/xo/unit/quantity_iostream.hpp @@ -18,11 +18,7 @@ namespace xo { > inline std::ostream & operator<< (std::ostream & os, - const quantity & x) + const quantity & x) { os << x.scale() << x.abbrev(); return os; diff --git a/utest/quantity.test.cpp b/utest/quantity.test.cpp index 6d327eaa..10f7c32a 100644 --- a/utest/quantity.test.cpp +++ b/utest/quantity.test.cpp @@ -388,11 +388,8 @@ namespace xo { static_assert(rr.natural_unit_.n_bpu() == 1); constexpr auto q1 = quantity(ms.scale() * ms.scale()); + rr.natural_unit_, + decltype(ms)::ratio_int2x_type>(ms.scale() * ms.scale()); /* proof that q is constexpr */ static_assert(q1.scale() == 1.0); @@ -443,9 +440,6 @@ namespace xo { static_assert(rr.natural_unit_.n_bpu() == 0); constexpr auto q1 = quantity(ms.scale() * ms.scale());