mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
Bug fix: typeid(cpptype)
-> cpptype->name()
This commit is contained in:
parent
1158dbc57b
commit
bd37d69b67
@ -1073,7 +1073,7 @@ public:
|
|||||||
smart_holder_type_caster_support::value_and_holder_helper v_h_helper;
|
smart_holder_type_caster_support::value_and_holder_helper v_h_helper;
|
||||||
v_h_helper.loaded_v_h = v_h;
|
v_h_helper.loaded_v_h = v_h;
|
||||||
if (v_h_helper.have_holder()) {
|
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>();
|
value = v_h_helper.holder().template as_raw_ptr_unowned<void>();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user