]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove a std::bind by lambda 9963/head
authorTimo Heister <timo.heister@gmail.com>
Sun, 26 Apr 2020 23:16:40 +0000 (19:16 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 26 Apr 2020 23:16:40 +0000 (19:16 -0400)
part of #9930

tests/quick_tests/tbb.cc

index c9a1445a47e1c640caf8dba7ddc53a534ae96784..b8ff84462c45e9873ce09b609d2dcd2816a38717 100644 (file)
@@ -74,7 +74,7 @@ test2()
   WorkStream::run(v.begin(),
                   v.end(),
                   &assemble,
-                  std::bind(&copy, std::ref(result), std::placeholders::_1),
+                  [&result](const copy_data &data) { copy(result, data); },
                   scratch_data(),
                   copy_data());
   std::cout << "result: " << result << std::endl;

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.