From e65e58716e79087a48421da3b1bb2907b8310cde Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Mon, 18 Apr 2016 21:22:22 +0200 Subject: [PATCH] slight generalization of cast_op_type --- include/pybind11/cast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 8625d8ac..802c6746 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;