slight generalization of cast_op_type

This commit is contained in:
Wenzel Jakob 2016-04-18 21:22:22 +02:00
parent c79dbe425d
commit e65e58716e

View File

@ -207,7 +207,7 @@ protected:
/* Determine suitable casting operator */
template <typename T>
using cast_op_type = typename std::conditional<std::is_pointer<T>::value,
using cast_op_type = typename std::conditional<std::is_pointer<typename std::remove_reference<T>::type>::value,
typename std::add_pointer<typename intrinsic_type<T>::type>::type,
typename std::add_lvalue_reference<typename intrinsic_type<T>::type>::type>::type;