]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix error generated in removing mem_fun 2900/head
authorJonathan Robey <class4kayaker@gmail.com>
Sun, 31 Jul 2016 23:58:25 +0000 (16:58 -0700)
committerJonathan Robey <class4kayaker@gmail.com>
Sun, 31 Jul 2016 23:58:25 +0000 (16:58 -0700)
include/deal.II/numerics/time_dependent.h
source/numerics/time_dependent.cc

index b7e1fe8175916f0c13468fe9790597a698a4771c..660e2cede61d17c12bd332dad3a96964d0bb01e0 100644 (file)
@@ -1482,12 +1482,10 @@ void TimeDependent::do_loop (InitFunctionObject      init_function,
     switch (direction)
       {
       case forward:
-        init_function (static_cast<typename InitFunctionObject::argument_type>
-                       (&*timesteps[step]));
+        init_function ((&*timesteps[step]));
         break;
       case backward:
-        init_function (static_cast<typename InitFunctionObject::argument_type>
-                       (&*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<typename LoopFunctionObject::argument_type>
-                         (&*timesteps[step]));
+          loop_function ((&*timesteps[step]));
           break;
         case backward:
-          loop_function (static_cast<typename LoopFunctionObject::argument_type>
-                         (&*timesteps[n_timesteps-step-1]));
+          loop_function ((&*timesteps[n_timesteps-step-1]));
           break;
         };
 
index c52d922abdc364f5c17bd1be6702847287b34af3..005b5c862c80a3397198d4eeb0b2fa06ed717819 100644 (file)
@@ -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);
 }

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.