diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-03-31 15:13:35 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-03-31 15:13:35 -0500 |
| commit | 48b244dcd41d4c5f14a649fdfbc9c2be47b4d5fb (patch) | |
| tree | 3d18de6257d340d28081dee7493bed34db1773ea | |
| parent | f9de65b546f5b7a33b5cef9f676b3a42a9379dd9 (diff) | |
| parent | 5002a0343fb58ebbf05e8db45895cc067b533b9b (diff) | |
| download | monzero-core-48b244dcd41d4c5f14a649fdfbc9c2be47b4d5fb.tar.gz monzero-core-48b244dcd41d4c5f14a649fdfbc9c2be47b4d5fb.tar.xz monzero-core-48b244dcd41d4c5f14a649fdfbc9c2be47b4d5fb.zip | |
Merge pull request #6311
5002a03 Explicitly define copy assignment operator (omartijn)
| -rw-r--r-- | contrib/epee/include/storages/portable_storage_base.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/epee/include/storages/portable_storage_base.h b/contrib/epee/include/storages/portable_storage_base.h index 40c7524fb..1676f41fb 100644 --- a/contrib/epee/include/storages/portable_storage_base.h +++ b/contrib/epee/include/storages/portable_storage_base.h @@ -84,6 +84,13 @@ namespace epee array_entry_t():m_it(m_array.end()){} array_entry_t(const array_entry_t& other):m_array(other.m_array), m_it(m_array.end()){} + array_entry_t& operator=(const array_entry_t& other) + { + m_array = other.m_array; + m_it = m_array.end(); + return *this; + } + const t_entry_type* get_first_val() const { m_it = m_array.begin(); |
