From f2ae1da7647fc874bebef78b62b78e122e5513b6 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Mon, 19 Sep 2022 10:33:14 -0700 Subject: [PATCH] Dict: Mark iterator move operator/constructors as noexcept --- src/Dict.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dict.h b/src/Dict.h index c3fe5a893b..b257766a67 100644 --- a/src/Dict.h +++ b/src/Dict.h @@ -220,7 +220,7 @@ public: return *this; } - DictIterator(DictIterator&& that) + DictIterator(DictIterator&& that) noexcept { if ( this == &that ) return; @@ -238,7 +238,7 @@ public: that.dict = nullptr; } - DictIterator& operator=(DictIterator&& that) + DictIterator& operator=(DictIterator&& that) noexcept { if ( this == &that ) return *this; @@ -358,7 +358,7 @@ public: } } - RobustDictIterator(RobustDictIterator&& other) : curr(nullptr) + RobustDictIterator(RobustDictIterator&& other) noexcept : curr(nullptr) { dict = nullptr;