mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-13 09:03:54 +00:00
Merge branch 'master' into sh_merge_master
This commit is contained in:
commit
d6d3fe857b
@ -1005,6 +1005,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