From: bangerth Date: Mon, 24 Mar 2014 19:10:08 +0000 (+0000) Subject: Make sure we return a value in a function that has a return type. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2d5043f2345509da8a3f81202944b777748f26b;p=dealii-svn.git Make sure we return a value in a function that has a return type. git-svn-id: https://svn.dealii.org/trunk@32688 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/parallel.h b/deal.II/include/deal.II/base/parallel.h index 4ab52a338d..dd6ee8bedf 100644 --- a/deal.II/include/deal.II/base/parallel.h +++ b/deal.II/include/deal.II/base/parallel.h @@ -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