From: Wolfgang Bangerth Date: Wed, 8 Dec 2021 16:51:08 +0000 (-0700) Subject: Name a function better. X-Git-Tag: v9.3.3~5^2~7 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69d52980acc7a8a8aea5da9be087ea59458dece6;p=dealii.git Name a function better. Previously, the TBB required it to be operator(), but the new system no longer requires this. --- diff --git a/include/deal.II/base/work_stream.h b/include/deal.II/base/work_stream.h index 86e18a09c8..86b9626934 100644 --- a/include/deal.II/base/work_stream.h +++ b/include/deal.II/base/work_stream.h @@ -350,7 +350,7 @@ namespace WorkStream * Create an item and return a pointer to it. */ ItemType * - operator()() + get_item() { // find first unused item. we know that there must be one // because we have set the maximal number of tokens in flight @@ -492,7 +492,7 @@ namespace WorkStream sample_copy_data); auto tbb_item_stream_filter = tbb::make_filter( tbb::filter::serial, [&](tbb::flow_control &fc) -> ItemType * { - if (const auto item = iterator_range_to_item_stream()) + if (const auto item = iterator_range_to_item_stream.get_item()) return item; else {