diff options
author | Sven Gothel <[email protected]> | 2021-10-24 03:14:48 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-10-24 03:14:48 +0200 |
commit | c770479d4ce702ec2151f7b88d34b916ad61c53a (patch) | |
tree | 4b970d64bd6cbc7b95d38c42dd628669c9ad9c38 /include/jau | |
parent | 68fd8259de1a8531569500b206695535805de87a (diff) |
Fix cow_darray::push_back( InputIt first, InputIt last ): On storage growth path, push_back must happen on new storage
Diffstat (limited to 'include/jau')
-rw-r--r-- | include/jau/cow_darray.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jau/cow_darray.hpp b/include/jau/cow_darray.hpp index b31588e..8da0399 100644 --- a/include/jau/cow_darray.hpp +++ b/include/jau/cow_darray.hpp @@ -900,7 +900,7 @@ namespace jau { storage_ref_t new_store_ref = std::make_shared<storage_t>( *store_ref, new_size_, store_ref->growth_factor(), store_ref->get_allocator_ref() ); - store_ref->push_back( first, last ); + new_store_ref->push_back( first, last ); { sc_atomic_critical sync(sync_atomic); store_ref = std::move(new_store_ref); |