]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make sure we return a value in a function that has a return type.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Mar 2014 19:10:08 +0000 (19:10 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Mar 2014 19:10:08 +0000 (19:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@32688 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/parallel.h

index 4ab52a338d294d16247dca0580e81f63c0c161fb..dd6ee8bedfd0360e84cd5412d90ad55fdaecccb2 100644 (file)
@@ -758,11 +758,11 @@ namespace parallel
     (void) grainsize;
 
 #  ifndef DEAL_II_BIND_NO_CONST_OP_PARENTHESES
-    f (begin, end);
+    return f (begin, end);
 #  else
     // work around a problem with MS VC++ where there is no const
     // operator() in Function
-    Function(f) (begin, end);
+    return Function(f) (begin, end);
 #  endif
 #else
     internal::ReductionOnSubranges<ResultType,Function>

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.