Commit 45164c1f by Oleksandr Pavlyk Committed by GitHub

Added deleted copy constructor for error_scope to comply with rule of 3. (#3870)

* Added deleted copy constructor for error_scope to comply with rule of 3.
parent ba7a0fac
...@@ -992,6 +992,7 @@ constexpr const char ...@@ -992,6 +992,7 @@ constexpr const char
struct error_scope { struct error_scope {
PyObject *type, *value, *trace; PyObject *type, *value, *trace;
error_scope() { PyErr_Fetch(&type, &value, &trace); } error_scope() { PyErr_Fetch(&type, &value, &trace); }
error_scope(const error_scope &) = delete;
~error_scope() { PyErr_Restore(type, value, trace); } ~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