Commit 30716c67 by Ralf W. Grosse-Kunstleve Committed by GitHub

Also add error_scope assignment operator to complete the rule-of-3 (follow-on to PR #3870). (#3872)

parent 3829b762
......@@ -993,6 +993,7 @@ struct error_scope {
PyObject *type, *value, *trace;
error_scope() { PyErr_Fetch(&type, &value, &trace); }
error_scope(const error_scope &) = delete;
error_scope &operator=(const error_scope &) = delete;
~error_scope() { PyErr_Restore(type, value, trace); }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment