From: Jonathan Robey Date: Sun, 31 Jul 2016 23:58:25 +0000 (-0700) Subject: Fix error generated in removing mem_fun X-Git-Tag: v8.5.0-rc1~822^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2900%2Fhead;p=dealii.git Fix error generated in removing mem_fun --- diff --git a/include/deal.II/numerics/time_dependent.h b/include/deal.II/numerics/time_dependent.h index b7e1fe8175..660e2cede6 100644 --- a/include/deal.II/numerics/time_dependent.h +++ b/include/deal.II/numerics/time_dependent.h @@ -1482,12 +1482,10 @@ void TimeDependent::do_loop (InitFunctionObject init_function, switch (direction) { case forward: - init_function (static_cast - (&*timesteps[step])); + init_function ((&*timesteps[step])); break; case backward: - init_function (static_cast - (&*timesteps[n_timesteps-step-1])); + init_function ((&*timesteps[n_timesteps-step-1])); break; }; @@ -1532,12 +1530,10 @@ void TimeDependent::do_loop (InitFunctionObject init_function, switch (direction) { case forward: - loop_function (static_cast - (&*timesteps[step])); + loop_function ((&*timesteps[step])); break; case backward: - loop_function (static_cast - (&*timesteps[n_timesteps-step-1])); + loop_function ((&*timesteps[n_timesteps-step-1])); break; }; diff --git a/source/numerics/time_dependent.cc b/source/numerics/time_dependent.cc index c52d922abd..005b5c862c 100644 --- a/source/numerics/time_dependent.cc +++ b/source/numerics/time_dependent.cc @@ -175,8 +175,8 @@ TimeDependent::solve_dual_problem () void TimeDependent::postprocess () { - do_loop (std_cxx11::bind(&TimeStepBase::init_for_postprocessing, std_cxx11), - std_cxx11::bind(&TimeStepBase::postprocess_timestep, std_cxx11), + do_loop (std_cxx11::bind(&TimeStepBase::init_for_postprocessing, std_cxx11::_1), + std_cxx11::bind(&TimeStepBase::postprocess_timestep, std_cxx11::_1), timestepping_data_postprocess, forward); }