From 347e6eaf68b4712454e4e095f5d7ca7a1516f987 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 23 Feb 2016 17:37:10 +0100 Subject: [PATCH] allow a broader set of types in STL containers --- include/pybind11/stl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/pybind11/stl.h b/include/pybind11/stl.h index 68b347801..fca1ab8e4 100644 --- a/include/pybind11/stl.h +++ b/include/pybind11/stl.h @@ -27,7 +27,7 @@ NAMESPACE_BEGIN(detail) template struct set_caster { typedef Type type; - typedef type_caster key_conv; + typedef type_caster::type> key_conv; bool load(handle src, bool convert) { pybind11::set s(src, true); @@ -58,8 +58,8 @@ template struct set_caster { template struct map_caster { typedef Type type; - typedef type_caster key_conv; - typedef type_caster value_conv; + typedef type_caster::type> key_conv; + typedef type_caster::type> value_conv; bool load(handle src, bool convert) { dict d(src, true); @@ -94,7 +94,7 @@ template struct map_caster { template struct list_caster { typedef Type type; - typedef type_caster value_conv; + typedef type_caster::type> value_conv; bool load(handle src, bool convert) { list l(src, true); @@ -139,7 +139,7 @@ template struct type_caster struct type_caster> { typedef std::array array_type; - typedef type_caster value_conv; + typedef type_caster::type> value_conv; bool load(handle src, bool convert) { list l(src, true);