diff --git a/src/common/intrusive_list.h b/src/common/intrusive_list.h index 9fd2bc66..fcf1bd5d 100644 --- a/src/common/intrusive_list.h +++ b/src/common/intrusive_list.h @@ -355,7 +355,7 @@ public: * Exchanges contents of this list with another list instance. * @param other The other list to swap with. */ - void swap(IntrusiveList& other) { + void swap(IntrusiveList& other) noexcept { root.swap(other.root); } @@ -370,7 +370,7 @@ private: * @param rhs The second list. */ template -void swap(IntrusiveList& lhs, IntrusiveList& rhs) { +void swap(IntrusiveList& lhs, IntrusiveList& rhs) noexcept { lhs.swap(rhs); }