]> https://gitweb.dealii.org/ - dealii.git/commitdiff
nolint std::bind
authorTimo Heister <timo.heister@gmail.com>
Thu, 30 Apr 2020 19:19:19 +0000 (15:19 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 5 May 2020 02:00:49 +0000 (22:00 -0400)
include/deal.II/base/thread_management.h

index f3a1a60667c111eb29f0ecf30c0882f0f0165eb9..817fe0520eadce1bbab12ea97359ea39afeb6aa3 100644 (file)
@@ -1117,6 +1117,7 @@ namespace Threads
              typename identity<C>::type &c,
              typename identity<Args>::type... args)
   {
+    // NOLINTNEXTLINE(modernize-avoid-bind) silence clang-tidy
     return new_thread(std::function<RT()>(std::bind(
       fun_ptr, std::ref(c), internal::maybe_make_ref<Args>::act(args)...)));
   }
@@ -1133,6 +1134,7 @@ namespace Threads
              typename identity<const C>::type &c,
              typename identity<Args>::type... args)
   {
+    // NOLINTNEXTLINE(modernize-avoid-bind) silence clang-tidy
     return new_thread(std::function<RT()>(std::bind(
       fun_ptr, std::cref(c), internal::maybe_make_ref<Args>::act(args)...)));
   }
@@ -1753,6 +1755,7 @@ namespace Threads
            typename identity<C>::type &c,
            typename identity<Args>::type... args)
   {
+    // NOLINTNEXTLINE(modernize-avoid-bind) silence clang-tidy
     return new_task(std::function<RT()>(std::bind(
       fun_ptr, std::ref(c), internal::maybe_make_ref<Args>::act(args)...)));
   }
@@ -1769,6 +1772,7 @@ namespace Threads
            typename identity<const C>::type &c,
            typename identity<Args>::type... args)
   {
+    // NOLINTNEXTLINE(modernize-avoid-bind) silence clang-tidy
     return new_task(std::function<RT()>(std::bind(
       fun_ptr, std::cref(c), internal::maybe_make_ref<Args>::act(args)...)));
   }

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.