This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-07-06 11:17:00 -07:00
parent 70ba91f721
commit af467ea1a6

View File

@ -1089,6 +1089,8 @@ public:
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(typeid(cpptype));
value = v_h_helper.holder().template as_raw_ptr_unowned<void>();
return;
} }
} }
auto *&vptr = v_h.value_ptr(); auto *&vptr = v_h.value_ptr();