MCPcopy Create free account
hub / github.com/pybind/pybind11 / ~error_scope

Method ~error_scope

include/pybind11/detail/common.h:1219–1219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217 error_scope(const error_scope &) = delete;
1218 error_scope &operator=(const error_scope &) = delete;
1219 ~error_scope() { PyErr_Restore(type, value, trace); }
1220};
1221
1222/// Dummy destructor wrapper that can be used to expose classes with a private destructor

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected