downcasting_traits renamed to downcast_traits

- downcasting_traits -> downcast_traits
- downcasting_traits_t -> downcast_traits_t
- downcast_from -> downcast_base_t
- downcast_to removed
This commit is contained in:
Mateusz Pusz
2019-09-20 18:36:14 +02:00
parent da11f41529
commit 0cffcf7849
32 changed files with 118 additions and 129 deletions
+3 -6
View File
@@ -40,15 +40,12 @@ namespace units {
std::derived_from<T, downcast_base<typename T::base_type>>;
template<Downcastable T>
using downcast_from = T::base_type;
using downcast_base_t = T::base_type;
template<Downcastable T>
using downcast_to = std::type_identity<T>;
struct downcast_traits : std::type_identity<T> {};
template<Downcastable T>
struct downcasting_traits : downcast_to<T> {};
template<Downcastable T>
using downcasting_traits_t = downcasting_traits<T>::type;
using downcast_traits_t = downcast_traits<T>::type;
} // namespace units