From 7c2450565f2cd06544a38f14aaa2cd4e733ebc54 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 17 May 2001 13:40:40 +0000 Subject: [PATCH] Avoid trouble with member templates and overloaded functions by using 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 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index 6567017092..a5fab0fa25 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -1538,9 +1538,11 @@ void DataOutBase::write_gmv (const typename std::vector > &p std::vector > data_vectors (n_data_sets, std::vector (n_nodes)); Threads::ThreadManager thread_manager; + void (*fun_ptr) (const typename std::vector > &, + std::vector > &) + = &DataOutBase::template write_gmv_reorder_data_vectors; Threads::spawn (thread_manager, - Threads::encapsulate (&DataOutBase::template - write_gmv_reorder_data_vectors) + Threads::encapsulate (fun_ptr) .collect_args(patches, data_vectors)); /////////////////////////////// @@ -1868,9 +1870,11 @@ void DataOutBase::write_vtk (const typename std::vector > &p std::vector > data_vectors (n_data_sets, std::vector (n_nodes)); Threads::ThreadManager thread_manager; + void (*fun_ptr) (const typename std::vector > &, + std::vector > &) + = &DataOutBase::template write_gmv_reorder_data_vectors; Threads::spawn (thread_manager, - Threads::encapsulate (&DataOutBase::template - write_gmv_reorder_data_vectors) + Threads::encapsulate (fun_ptr) .collect_args(patches, data_vectors)); /////////////////////////////// -- 2.39.5