Bug fix: typeid(cpptype) -> cpptype->name()

This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-07-07 08:54:55 -07:00
parent 1158dbc57b
commit bd37d69b67

View File

@ -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<void>();
return;
}