We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e741760 commit 5d1d678Copy full SHA for 5d1d678
include/pybind11/detail/internals.h
@@ -339,8 +339,8 @@ struct internals {
339
internals &operator=(const internals &other) = delete;
340
internals &operator=(internals &&other) = delete;
341
~internals() {
342
- for (auto &[_, storage_ptr] : call_once_storage_map) {
343
- delete storage_ptr;
+ for (auto &entry : call_once_storage_map) {
+ delete entry.second;
344
}
345
call_once_storage_map.clear();
346
0 commit comments