move_only_holder_caster<...unique_ptr...>::load_value(): throw instead of return false (i.e. prefer noisy failure over potentially silent failure).

This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-07-04 23:57:34 -07:00
parent 66fb5c942c
commit fd1afdb2b9

View File

@ -1013,7 +1013,7 @@ public:
sh_load_helper.loaded_v_h.type = get_type_info(typeid(type));
return true;
}
return false; // BAKEIN_WIP: What is the best behavior here?
throw std::runtime_error("BAKEIN_WIP: What is the best behavior here?");
}
template <typename>