From 8fb857f9da16a043f15c8447d4bc37c1d2ca4819 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 6 Sep 2016 22:47:52 -0400 Subject: [PATCH] intrusive_list: Specify noexcept on swap implementations Necessary to fully satisfy the Swappable concept. --- src/common/intrusive_list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }