]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disambiguate taking address of overloaded function.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 1 Feb 2002 08:24:23 +0000 (08:24 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 1 Feb 2002 08:24:23 +0000 (08:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@5440 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/time_dependent.cc

index 9c41c15b05833d40b415b73747b58a3db3ce7281..3e39043df916f0d4bd8c987725c3bffd5e90eac3 100644 (file)
@@ -208,9 +208,11 @@ void TimeDependent::end_sweep (const unsigned int n_threads)
 #ifdef DEAL_II_USE_MT
   const unsigned int stride = timesteps.size() / n_threads;
   Threads::ThreadManager thread_manager;
+  void (TimeDependent::*p) (unsigned int, unsigned int)
+    = &TimeDependent::end_sweep;
   for (unsigned int i=0; i<n_threads; ++i)
     Threads::spawn (thread_manager,
-                   Threads::encapsulate (&TimeDependent::end_sweep)
+                   Threads::encapsulate (p)
                    .collect_args (this, i*stride,
                                   (i == n_threads-1 ?
                                    timesteps.size() :

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.