Upcasting facility refactored by adding additional alias templates

This commit is contained in:
Mateusz Pusz committed 2019-04-09 16:53:34 +02:00
1 parent 373e70f2b1
commit fe158440bb
8 files changed
+69 -52

No files matched your search

+1 -2
View File
@@ -49,7 +49,6 @@ namespace units {
template<typename T>
concept bool Unit =
std::is_empty_v<T> &&
detail::is_unit<typename T::base_type> &&
std::experimental::ranges::DerivedFrom<T, typename T::base_type>;
detail::is_unit<upcast_from<T>>;
} // namespace units