Merge branch 'pybind:master' into master

This commit is contained in:
Steve R. Sun 2022-04-16 07:40:13 +08:00 committed by GitHub
commit 9a3eab1c76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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); }
};