diff --git a/operations_on_datastructures/circular_linked_list.cpp b/operations_on_datastructures/circular_linked_list.cpp index 2ddb626db..8cc93aec5 100644 --- a/operations_on_datastructures/circular_linked_list.cpp +++ b/operations_on_datastructures/circular_linked_list.cpp @@ -74,7 +74,7 @@ class CircularLinkedList { root = copy.root; end = copy.end; } - CircularLinkedList(CircularLinkedList&& source) { + CircularLinkedList(CircularLinkedList&& source) noexcept { root = source.root; end = source.end; } @@ -82,7 +82,7 @@ class CircularLinkedList { root = other.root; end = other.end; } - CircularLinkedList& operator=(CircularLinkedList&& other) { + CircularLinkedList& operator=(CircularLinkedList&& other) noexcept { root = other.root; end = other.end; }