Closed nico-abram closed 1 year ago
The *this = cpy statement calls the copy constructor, which does delete m_pImpl while the field is uninitialized. Just removing it should be fine, we allocate a copy of the m_pImpl anyways and that is the only field in the type.
*this = cpy
delete m_pImpl
The
*this = cpy
statement calls the copy constructor, which doesdelete m_pImpl
while the field is uninitialized. Just removing it should be fine, we allocate a copy of the m_pImpl anyways and that is the only field in the type.