xo-unit: quantity: check template args sat concepts
This commit is contained in:
parent
0c355d3e8b
commit
0ff7b7dc11
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue