We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3829b76 commit 30716c6Copy full SHA for 30716c6
include/pybind11/detail/common.h
@@ -993,6 +993,7 @@ struct error_scope {
993
PyObject *type, *value, *trace;
994
error_scope() { PyErr_Fetch(&type, &value, &trace); }
995
error_scope(const error_scope &) = delete;
996
+ error_scope &operator=(const error_scope &) = delete;
997
~error_scope() { PyErr_Restore(type, value, trace); }
998
};
999
0 commit comments