mirror of
https://github.com/pybind/pybind11.git
synced 2026-07-15 03:26:30 +00:00
Fix C++11 compatibility
This commit is contained in:
@@ -339,8 +339,8 @@ struct internals {
|
||||
internals &operator=(const internals &other) = delete;
|
||||
internals &operator=(internals &&other) = delete;
|
||||
~internals() {
|
||||
for (auto &[_, storage_ptr] : call_once_storage_map) {
|
||||
delete storage_ptr;
|
||||
for (auto &entry : call_once_storage_map) {
|
||||
delete entry.second;
|
||||
}
|
||||
call_once_storage_map.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user