QuantityOf concept added

This commit is contained in:
Mateusz Pusz committed 2019-09-10 22:33:54 +02:00
1 parent bce17a8476
commit bebaa5482c
20 files changed
+22 -19

No files matched your search

+1 -1
View File
@@ -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> {};