Skip to content

Commit

Permalink
iox-eclipse-iceoryx#605 Don't call move assign in move c'tor in 'Rela…
Browse files Browse the repository at this point in the history
…tivePointer'

Signed-off-by: Simon Hoinkis <[email protected]>
  • Loading branch information
mossmaurice committed Sep 29, 2022
1 parent cd59d9b commit d55b3b2
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 d55b3b2

Please sign in to comment.