From bd37d69b6714d91bda96886a41e3531f1c29d3bd Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sun, 7 Jul 2024 08:54:55 -0700 Subject: [PATCH] Bug fix: `typeid(cpptype)` -> `cpptype->name()` --- include/pybind11/detail/type_caster_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/detail/type_caster_base.h b/include/pybind11/detail/type_caster_base.h index 5efdf308b..b9590670e 100644 --- a/include/pybind11/detail/type_caster_base.h +++ b/include/pybind11/detail/type_caster_base.h @@ -1073,7 +1073,7 @@ public: smart_holder_type_caster_support::value_and_holder_helper v_h_helper; v_h_helper.loaded_v_h = v_h; if (v_h_helper.have_holder()) { - v_h_helper.throw_if_uninitialized_or_disowned_holder(typeid(cpptype)); + v_h_helper.throw_if_uninitialized_or_disowned_holder(cpptype->name()); value = v_h_helper.holder().template as_raw_ptr_unowned(); return; }