Skip to content

Commit 5d1d678

Browse files
committed
Fix C++11 compatibility
1 parent e741760 commit 5d1d678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/detail/internals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ struct internals {
339339
internals &operator=(const internals &other) = delete;
340340
internals &operator=(internals &&other) = delete;
341341
~internals() {
342-
for (auto &[_, storage_ptr] : call_once_storage_map) {
343-
delete storage_ptr;
342+
for (auto &entry : call_once_storage_map) {
343+
delete entry.second;
344344
}
345345
call_once_storage_map.clear();
346346
}

0 commit comments

Comments
 (0)