diff --git a/pybind11_protobuf/enum_type_caster.h b/pybind11_protobuf/enum_type_caster.h index 4b94506..5765233 100644 --- a/pybind11_protobuf/enum_type_caster.h +++ b/pybind11_protobuf/enum_type_caster.h @@ -45,7 +45,7 @@ struct enum_type_caster { using base_caster = pybind11::detail::make_caster; public: - static constexpr auto name = pybind11::detail::_(); + static constexpr auto name = pybind11::detail::const_name(); // cast converts from C++ -> Python static pybind11::handle cast(EnumType src, diff --git a/pybind11_protobuf/proto_caster_impl.h b/pybind11_protobuf/proto_caster_impl.h index 398df2b..3508ee6 100644 --- a/pybind11_protobuf/proto_caster_impl.h +++ b/pybind11_protobuf/proto_caster_impl.h @@ -190,7 +190,7 @@ struct proto_caster : public proto_caster_load_impl, using Loader::value; public: - static constexpr auto name = pybind11::detail::_(); + static constexpr auto name = pybind11::detail::const_name(); // cast converts from C++ -> Python // diff --git a/pybind11_protobuf/wrapped_proto_caster.h b/pybind11_protobuf/wrapped_proto_caster.h index 347be2c..d45282f 100644 --- a/pybind11_protobuf/wrapped_proto_caster.h +++ b/pybind11_protobuf/wrapped_proto_caster.h @@ -138,7 +138,7 @@ struct wrapped_proto_caster : public pybind11_protobuf::proto_caster_load_impl< using pybind11_protobuf::native_cast_impl::cast_impl; public: - static constexpr auto name = pybind11::detail::_(); + static constexpr auto name = pybind11::detail::const_name(); // cast converts from C++ -> Python static pybind11::handle cast(WrappedProtoType src, @@ -244,7 +244,8 @@ template struct wrapped_proto_vector_caster { static constexpr auto name = (pybind11::detail::const_name("List[") + - pybind11::detail::_() + pybind11::detail::const_name("]")); + pybind11::detail::const_name() + + pybind11::detail::const_name("]")); // cast converts from Python -> C++ bool load(pybind11::handle src, bool convert) {