diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 8625d8ac8..802c6746b 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -207,7 +207,7 @@ protected: /* Determine suitable casting operator */ template -using cast_op_type = typename std::conditional::value, +using cast_op_type = typename std::conditional::type>::value, typename std::add_pointer::type>::type, typename std::add_lvalue_reference::type>::type>::type;