xo-unit: quantity: check template args sat concepts

This commit is contained in:
Roland Conybeare 2024-04-05 01:44:19 -04:00
commit 0ff7b7dc11

View file

@ -42,6 +42,8 @@ namespace xo {
using repr_type = Repr;
///@}
static_assert(unit_concept<Unit>);
static_assert(numeric_concept<Repr>);
/* non-unity compile-time scale factors can arise during unit conversion;
* for example see method quantity::in_units_of()
*/