From: Timo Heister Date: Tue, 5 Nov 2024 21:50:40 +0000 (-0500) Subject: parallel::transform() fix iterator type X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a69c7bd48d83115470b4de3e5d78f4462c9231d;p=dealii.git parallel::transform() fix iterator type --- diff --git a/include/deal.II/base/parallel.h b/include/deal.II/base/parallel.h index d22c8ad696..8e38e803ca 100644 --- a/include/deal.II/base/parallel.h +++ b/include/deal.II/base/parallel.h @@ -173,7 +173,7 @@ namespace parallel // warnings about unused arguments (void)grainsize; - for (OutputIterator in = begin_in; in != end_in;) + for (InputIterator in = begin_in; in != end_in;) *out++ = function(*in++); #else using Iterators = std::tuple; @@ -249,7 +249,7 @@ namespace parallel // warnings about unused arguments (void)grainsize; - for (OutputIterator in1 = begin_in1; in1 != end_in1;) + for (InputIterator in1 = begin_in1; in1 != end_in1;) *out++ = function(*in1++, *in2++); #else using Iterators = @@ -332,7 +332,7 @@ namespace parallel // warnings about unused arguments (void)grainsize; - for (OutputIterator in1 = begin_in1; in1 != end_in1;) + for (InputIterator in1 = begin_in1; in1 != end_in1;) *out++ = function(*in1++, *in2++, *in3++); #else using Iterators = std::