]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make clear that the predicate must be const
authorBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 14 Mar 2019 21:58:31 +0000 (17:58 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 14 Mar 2019 21:58:31 +0000 (17:58 -0400)
include/deal.II/base/parallel.h

index d9db08f5acd5841f46100fb83c13b7cff08688e0..8b9d5cc49159b601ff6f13ba0c8929732d5d2358 100644 (file)
@@ -209,7 +209,7 @@ namespace parallel
   transform(const InputIterator &begin_in,
             const InputIterator &end_in,
             OutputIterator       out,
-            Predicate &          predicate,
+            const Predicate &    predicate,
             const unsigned int   grainsize)
   {
 #ifndef DEAL_II_WITH_THREADS
@@ -265,7 +265,7 @@ namespace parallel
             const InputIterator1 &end_in1,
             InputIterator2        in2,
             OutputIterator        out,
-            Predicate &           predicate,
+            const Predicate &     predicate,
             const unsigned int    grainsize)
   {
 #ifndef DEAL_II_WITH_THREADS
@@ -324,7 +324,7 @@ namespace parallel
             InputIterator2        in2,
             InputIterator3        in3,
             OutputIterator        out,
-            Predicate &           predicate,
+            const Predicate &     predicate,
             const unsigned int    grainsize)
   {
 #ifndef DEAL_II_WITH_THREADS

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.