mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-23 13:45:10 +00:00
Merge branch 'pybind:master' into master
This commit is contained in:
commit
9a3eab1c76
@ -993,6 +993,7 @@ 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(const error_scope &) = delete;
|
||||||
|
error_scope &operator=(const error_scope &) = delete;
|
||||||
~error_scope() { PyErr_Restore(type, value, trace); }
|
~error_scope() { PyErr_Restore(type, value, trace); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user