]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid trouble with member templates and overloaded functions by using
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 13:40:40 +0000 (13:40 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 13:40:40 +0000 (13:40 +0000)
a function pointer.

git-svn-id: https://svn.dealii.org/trunk@4649 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index 6567017092d155cb0bd3864eb760b3bcc0516e5d..a5fab0fa257fcc8d34f567758752e5f04217a55a 100644 (file)
@@ -1538,9 +1538,11 @@ void DataOutBase::write_gmv (const typename std::vector<Patch<dim,spacedim> > &p
   std::vector<std::vector<double> > data_vectors (n_data_sets,
                                                  std::vector<double> (n_nodes));
   Threads::ThreadManager thread_manager;
+  void (*fun_ptr) (const typename std::vector<Patch<dim,spacedim> > &,
+                  std::vector<std::vector<double> >                &)
+    = &DataOutBase::template write_gmv_reorder_data_vectors<dim,spacedim>;
   Threads::spawn (thread_manager,
-                 Threads::encapsulate (&DataOutBase::template
-                                       write_gmv_reorder_data_vectors<dim,spacedim>)
+                 Threads::encapsulate (fun_ptr)
                  .collect_args(patches, data_vectors));
 
                                   ///////////////////////////////
@@ -1868,9 +1870,11 @@ void DataOutBase::write_vtk (const typename std::vector<Patch<dim,spacedim> > &p
   std::vector<std::vector<double> > data_vectors (n_data_sets,
                                                  std::vector<double> (n_nodes));
   Threads::ThreadManager thread_manager;
+  void (*fun_ptr) (const typename std::vector<Patch<dim,spacedim> > &,
+                  std::vector<std::vector<double> >                &)
+    = &DataOutBase::template write_gmv_reorder_data_vectors<dim,spacedim>;
   Threads::spawn (thread_manager,
-                 Threads::encapsulate (&DataOutBase::template
-                                       write_gmv_reorder_data_vectors<dim,spacedim>)
+                 Threads::encapsulate (fun_ptr)
                  .collect_args(patches, data_vectors));
 
                                   ///////////////////////////////

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.