mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +02:00
Scalar concept constraints reversed
This commit is contained in:
@@ -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