forked from mpusz/mp-units
Scalar concept constraints reversed
This commit is contained in:
@@ -47,7 +47,7 @@ namespace units {
|
|||||||
// Scalar
|
// Scalar
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
concept Scalar = Number<T> && !Quantity<T>;
|
concept Scalar = (!Quantity<T>) && Number<T>;
|
||||||
|
|
||||||
template<Unit U, Scalar Rep>
|
template<Unit U, Scalar Rep>
|
||||||
class quantity;
|
class quantity;
|
||||||
|
Reference in New Issue
Block a user