Scalar concept constraints reversed
This commit is contained in:
1 parent
f5df115acb
commit
3f8cee0931
1 file changed
+1
-1
@@ -47,7 +47,7 @@ namespace units {
|
||||
// Scalar
|
||||
|
||||
template<typename T>
|
||||
concept Scalar = Number<T> && !Quantity<T>;
|
||||
concept Scalar = (!Quantity<T>) && Number<T>;
|
||||
|
||||
template<Unit U, Scalar Rep>
|
||||
class quantity;
|
||||
|
||||
Reference in new issue
Block a user