From ac0805d6a2959d383f83d3c09d57beeebaeb8675 Mon Sep 17 00:00:00 2001 From: Jonathan Robey Date: Sun, 31 Jul 2016 16:58:25 -0700 Subject: [PATCH] Fix error generated in removing mem_fun --- include/deal.II/numerics/time_dependent.h | 12 ++++-------- source/numerics/time_dependent.cc | 4 ++-- 2 files changed, 6 insertions(+), 10 deletions(-) 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); } -- 2.39.5