QuantityOf concept added
This commit is contained in:
1 parent
bce17a8476
commit
bebaa5482c
20 files changed
+22
-19
No files matched your search
@@ -31,7 +31,7 @@ namespace std::experimental::units {
|
||||
template<> struct downcasting_traits<downcast_from<length>> : downcast_to<length> {};
|
||||
|
||||
template<typename T>
|
||||
concept bool Length = Quantity<T> && std::same_as<typename T::dimension, length>;
|
||||
concept bool Length = QuantityOf<T, length>;
|
||||
|
||||
// SI units
|
||||
struct metre : unit<length> {};
|
||||
|
||||
Reference in new issue
Block a user