Down with typename

This commit is contained in:
Mateusz Pusz committed 2019-05-18 13:19:23 +02:00
1 parent d75377ccaf
commit 4b6a7ebb39
7 files changed
+38 -38

No files matched your search

+3 -3
View File
@@ -40,15 +40,15 @@ namespace units {
std::DerivedFrom<T, upcast_base<typename T::base_type>>;
template<Upcastable T>
using upcast_from = typename T::base_type;
using upcast_from = T::base_type;
template<Upcastable T>
using upcast_to = typename std::type_identity<T>;
using upcast_to = std::type_identity<T>;
template<Upcastable T>
struct upcasting_traits : upcast_to<T> {};
template<Upcastable T>
using upcasting_traits_t = typename upcasting_traits<T>::type;
using upcasting_traits_t = upcasting_traits<T>::type;
} // namespace units