From f2d5043f2345509da8a3f81202944b777748f26b Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 24 Mar 2014 19:10:08 +0000 Subject: [PATCH] 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 --- deal.II/include/deal.II/base/parallel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5