diff --git a/include/pybind11/stl.h b/include/pybind11/stl.h index 68b34780..fca1ab8e 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);