mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
slight generalization of cast_op_type
This commit is contained in:
parent
c79dbe425d
commit
e65e58716e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user