Skip to content

Commit

Permalink
iox-#605 Don't call move assign in move c'tor in 'RelativePointer'
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hoinkis <[email protected]>
  • Loading branch information
mossmaurice committed Sep 28, 2022
1 parent 439a1a9 commit 8a03aa8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ inline RelativePointer<T>& RelativePointer<T>::operator=(const RelativePointer&

template <typename T>
RelativePointer<T>::RelativePointer(RelativePointer&& other) noexcept
: m_id(std::move(other.m_id))
, m_offset(std::move(other.m_offset))
{
*this = std::move(other);
other.m_id = NULL_POINTER_ID;
other.m_offset = NULL_POINTER_OFFSET;
}

template <typename T>
Expand Down

0 comments on commit 8a03aa8

Please sign in to comment.