From 0ff7b7dc11e775ac83cd33e796d9884d3a8e5a70 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 5 Apr 2024 01:44:19 -0400 Subject: [PATCH] xo-unit: quantity: check template args sat concepts --- include/xo/unit/quantity.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/xo/unit/quantity.hpp b/include/xo/unit/quantity.hpp index bab5655c..f8d5dd80 100644 --- a/include/xo/unit/quantity.hpp +++ b/include/xo/unit/quantity.hpp @@ -42,6 +42,8 @@ namespace xo { using repr_type = Repr; ///@} + static_assert(unit_concept); + static_assert(numeric_concept); /* non-unity compile-time scale factors can arise during unit conversion; * for example see method quantity::in_units_of() */