From 4ee89948d9c340b9c0321af6816cbe093cb46e39 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 4 May 2024 01:50:46 -0400 Subject: [PATCH] xo-unit: streamline with_units_from() using auto --- include/xo/unit/quantity.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xo/unit/quantity.hpp b/include/xo/unit/quantity.hpp index 2fa467d..68fae4f 100644 --- a/include/xo/unit/quantity.hpp +++ b/include/xo/unit/quantity.hpp @@ -227,7 +227,7 @@ namespace xo { }; } /*namespace detail*/ - template Unit = Q2::s_unit> + template requires (quantity_concept && quantity_concept && Q1::always_constexpr_unit