Skip to content

Commit 6087734

Browse files
committed
Add comment: get_internals().get_memory_guarded_delete does not need with_internals()
1 parent 5093a03 commit 6087734

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/pybind11/detail/internals.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ struct internals {
255255

256256
type_map<PyObject *> native_enum_type_map;
257257

258+
// Note: get_internals().get_memory_guarded_delete does
259+
// not need to be wrapped in with_internals().
258260
memory::get_guarded_delete_fn get_memory_guarded_delete = memory::get_guarded_delete;
259261

260262
internals()

0 commit comments

Comments
 (0)