diff --git a/stormpy/resources/pybind11/include/pybind11/pybind11.h b/stormpy/resources/pybind11/include/pybind11/pybind11.h index e20096a8e..0a3ef1870 100644 --- a/stormpy/resources/pybind11/include/pybind11/pybind11.h +++ b/stormpy/resources/pybind11/include/pybind11/pybind11.h @@ -887,7 +887,7 @@ private: template static void init_holder_helper(instance_type *inst, const holder_type * /* unused */, const std::enable_shared_from_this * /* dummy */) { try { - new (&inst->holder) holder_type(std::static_pointer_cast(inst->value->shared_from_this())); + new (&inst->holder) holder_type(std::static_pointer_cast(inst->value->shared_from_this())); } catch (const std::bad_weak_ptr &) { new (&inst->holder) holder_type(inst->value); }