From a3ee1a45910c2dc9034f554bc238a9aaf41e0e53 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 6 Apr 2016 11:51:00 +0200 Subject: [PATCH] improved pair type caster (fixes #155) --- include/pybind11/cast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 613742cf..55030f6d 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -521,7 +521,8 @@ public: template using cast_op_type = type; operator type() { - return type(first, second); + return type(first .operator typename type_caster::type>::template cast_op_type(), + second.operator typename type_caster::type>::template cast_op_type()); } protected: type_caster::type> first;