mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 13:47:53 +00:00
improved pair type caster (fixes #155)
This commit is contained in:
parent
912feec119
commit
a3ee1a4591
@ -521,7 +521,8 @@ public:
|
||||
template <typename T> using cast_op_type = type;
|
||||
|
||||
operator type() {
|
||||
return type(first, second);
|
||||
return type(first .operator typename type_caster<typename intrinsic_type<T1>::type>::template cast_op_type<T1>(),
|
||||
second.operator typename type_caster<typename intrinsic_type<T2>::type>::template cast_op_type<T2>());
|
||||
}
|
||||
protected:
|
||||
type_caster<typename intrinsic_type<T1>::type> first;
|
||||
|
Loading…
Reference in New Issue
Block a user