Skip to content

Commit

Permalink
Mark move operator as 'noexcept'.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth authored and tamiko committed Jul 25, 2024
1 parent 2dfd096 commit 70aaa3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/deal.II/base/task_result.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 70aaa3d

Please sign in to comment.