From 54a9af7e6293be4569d58094be91764dc482d1ba Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 30 Apr 2020 15:19:19 -0400 Subject: [PATCH] nolint std::bind --- include/deal.II/base/thread_management.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index f3a1a60667..817fe0520e 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -1117,6 +1117,7 @@ namespace Threads typename identity::type &c, typename identity::type... args) { + // NOLINTNEXTLINE(modernize-avoid-bind) silence clang-tidy return new_thread(std::function(std::bind( fun_ptr, std::ref(c), internal::maybe_make_ref::act(args)...))); } @@ -1133,6 +1134,7 @@ namespace Threads typename identity::type &c, typename identity::type... args) { + // NOLINTNEXTLINE(modernize-avoid-bind) silence clang-tidy return new_thread(std::function(std::bind( fun_ptr, std::cref(c), internal::maybe_make_ref::act(args)...))); } @@ -1753,6 +1755,7 @@ namespace Threads typename identity::type &c, typename identity::type... args) { + // NOLINTNEXTLINE(modernize-avoid-bind) silence clang-tidy return new_task(std::function(std::bind( fun_ptr, std::ref(c), internal::maybe_make_ref::act(args)...))); } @@ -1769,6 +1772,7 @@ namespace Threads typename identity::type &c, typename identity::type... args) { + // NOLINTNEXTLINE(modernize-avoid-bind) silence clang-tidy return new_task(std::function(std::bind( fun_ptr, std::cref(c), internal::maybe_make_ref::act(args)...))); } -- 2.39.5