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

Method ~CustomGuard

tests/test_call_policies.cpp:16–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15 CustomGuard() { enabled = true; }
16 ~CustomGuard() { enabled = false; }
17
18 static const char *report_status() { return enabled ? "guarded" : "unguarded"; }
19};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected