mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 10:43:14 +00:00
Merge pull request #6311
5002a03
Explicitly define copy assignment operator (omartijn)
This commit is contained in:
commit
48b244dcd4
1 changed files with 7 additions and 0 deletions
|
@ -84,6 +84,13 @@ namespace epee
|
||||||
array_entry_t():m_it(m_array.end()){}
|
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(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
|
const t_entry_type* get_first_val() const
|
||||||
{
|
{
|
||||||
m_it = m_array.begin();
|
m_it = m_array.begin();
|
||||||
|
|
Loading…
Reference in a new issue