More constraints added for Dimension and Unit concepts

This commit is contained in:
Mateusz Pusz committed 2018-11-15 05:27:16 +01:00
1 parent e866985668
commit db64a3e6a1
3 files changed
+13 -2

No files matched your search

+4 -1
View File
@@ -47,7 +47,10 @@ namespace units {
}
template<typename T>
concept bool Unit = detail::is_unit<typename T::type>;
concept bool Unit =
std::is_empty_v<T> &&
detail::is_unit<typename T::type> &&
DerivedFrom<T, typename T::type>;
// dimension_traits