]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark move operator as 'noexcept'. 17389/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 24 Jul 2024 16:55:39 +0000 (10:55 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 25 Jul 2024 07:32:02 +0000 (02:32 -0500)
include/deal.II/base/task_result.h

index 54f706b7cf7a3934297ed6aba8f917d5b5d27672..f00fc958f8a5e76a0922e4447dae8f9300fa4d79 100644 (file)
@@ -196,7 +196,7 @@ namespace Threads
      * represents anything and is left as if default-constructed.
      */
     TaskResult &
-    operator=(TaskResult &&);
+    operator=(TaskResult &&) noexcept;
 
     /**
      * Copy assignment operator from a Task object. By assigning the Task
@@ -444,7 +444,7 @@ namespace Threads
 
   template <typename T>
   inline TaskResult<T> &
-  TaskResult<T>::operator=(TaskResult<T> &&other)
+  TaskResult<T>::operator=(TaskResult<T> &&other) noexcept
   {
     // First clear the current object before we put new content into it:
     clear();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.