]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make move operation explicit. 10473/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 10 Jun 2020 22:43:33 +0000 (16:43 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 10 Jun 2020 22:44:12 +0000 (16:44 -0600)
include/deal.II/base/thread_local_storage.h

index 0c2a2b5fc483d6aba88a0a654001cb5af9807c4e..80e47afb6397783e19eeb85c646300fcb5854cd7 100644 (file)
@@ -285,7 +285,7 @@ namespace Threads
 
   template <typename T>
   ThreadLocalStorage<T>::ThreadLocalStorage(ThreadLocalStorage<T> &&t) noexcept
-    : exemplar(t.exemplar)
+    : exemplar(std::move(t.exemplar))
   {
     // We are nice and raise the writer lock before copying over internal
     // data structures from the argument.

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.