From 66b6a29ed405846821b583069a26859665828116 Mon Sep 17 00:00:00 2001 From: Mateusz Karbowiak <69864511+mtszkarbowiak@users.noreply.github.com> Date: Thu, 31 Oct 2024 00:19:12 +0100 Subject: [PATCH] Collections iterator move noexcept fix --- Source/Engine/Core/Collections/Dictionary.h | 4 ++-- Source/Engine/Core/Collections/HashSet.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Engine/Core/Collections/Dictionary.h b/Source/Engine/Core/Collections/Dictionary.h index fd035e6f4..32f61a30c 100644 --- a/Source/Engine/Core/Collections/Dictionary.h +++ b/Source/Engine/Core/Collections/Dictionary.h @@ -289,7 +289,7 @@ public: { } - Iterator(Iterator&& i) + Iterator(Iterator&& i) noexcept : _collection(i._collection) , _index(i._index) { @@ -348,7 +348,7 @@ public: return *this; } - Iterator& operator=(Iterator&& v) + Iterator& operator=(Iterator&& v) noexcept { _collection = v._collection; _index = v._index; diff --git a/Source/Engine/Core/Collections/HashSet.h b/Source/Engine/Core/Collections/HashSet.h index af9e59566..a5bf8ae3e 100644 --- a/Source/Engine/Core/Collections/HashSet.h +++ b/Source/Engine/Core/Collections/HashSet.h @@ -270,7 +270,7 @@ public: { } - Iterator(Iterator&& i) + Iterator(Iterator&& i) noexcept : _collection(i._collection) , _index(i._index) { @@ -329,7 +329,7 @@ public: return *this; } - Iterator& operator=(Iterator&& v) + Iterator& operator=(Iterator&& v) noexcept { _collection = v._collection; _index = v._index;