diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index c86f7c211..b885298a7 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -864,7 +864,7 @@ template using cast_is_temporary_value_reference = bool_constant >; // Basic python -> C++ casting; throws if casting fails -template TypeCaster &load_type(TypeCaster &conv, const handle &handle) { +template type_caster &load_type(type_caster &conv, const handle &handle) { if (!conv.load(handle, true)) { #if defined(NDEBUG) throw cast_error("Unable to cast Python instance to C++ type (compile in debug mode for details)");