mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-20 01:42:37 +00:00
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:
parent
66fb5c942c
commit
fd1afdb2b9
@ -1013,7 +1013,7 @@ public:
|
|||||||
sh_load_helper.loaded_v_h.type = get_type_info(typeid(type));
|
sh_load_helper.loaded_v_h.type = get_type_info(typeid(type));
|
||||||
return true;
|
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>
|
template <typename>
|
||||||
|
Loading…
Reference in New Issue
Block a user