diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 4d15cafa6..d06508f90 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -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