From: wolf Date: Thu, 26 Apr 2001 14:27:08 +0000 (+0000) Subject: Make things more standards compliant by adding typename keywords. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e06a6545e160241ef0354890d0f7d17e42080c;p=dealii-svn.git Make things more standards compliant by adding typename keywords. git-svn-id: https://svn.dealii.org/branches/Branch-3-1@4491 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/thread_management.h b/deal.II/base/include/base/thread_management.h index 0a5ab9eaec..4e154f5b92 100644 --- a/deal.II/base/include/base/thread_management.h +++ b/deal.II/base/include/base/thread_management.h @@ -333,6 +333,9 @@ namespace Threads */ static void * thread_entry_point (void *arg); + +//TODO:[WB] (compiler) with some compilers we get into trouble if the following class is not public, since we can't somehow declare the encapsulate function as friend. change this when compilers accept the friend declaration + public: /** * Helper class, used to collect * the values of the parameters @@ -349,7 +352,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData0::FunPtr FunPtr; + typedef typename FunData0::FunPtr FunPtr; /** * Constructor. Take and store a @@ -471,7 +474,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData1::FunPtr FunPtr; + typedef typename FunData1::FunPtr FunPtr; /** * Constructor. Take and store a @@ -585,7 +588,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData2::FunPtr FunPtr; + typedef typename FunData2::FunPtr FunPtr; /** * Constructor. Take and store a @@ -701,7 +704,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData3::FunPtr FunPtr; + typedef typename FunData3::FunPtr FunPtr; /** * Constructor. Take and store a @@ -820,7 +823,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData4::FunPtr FunPtr; + typedef typename FunData4::FunPtr FunPtr; /** * Constructor. Take and store a @@ -943,7 +946,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData5::FunPtr FunPtr; + typedef typename FunData5::FunPtr FunPtr; /** * Constructor. Take and store a @@ -1068,7 +1071,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData6::FunPtr FunPtr; + typedef typename FunData6::FunPtr FunPtr; /** * Constructor. Take and store a @@ -1197,7 +1200,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData7::FunPtr FunPtr; + typedef typename FunData7::FunPtr FunPtr; /** * Constructor. Take and store a @@ -1329,7 +1332,7 @@ namespace Threads * underlying class to a * local type. */ - typedef FunData8::FunPtr FunPtr; + typedef typename FunData8::FunPtr FunPtr; /** * Constructor. Take and store a @@ -1449,7 +1452,7 @@ namespace Threads * underlying class to a * local type. */ - typedef MemFunData0::FunPtr FunPtr; + typedef typename MemFunData0::FunPtr FunPtr; /** * Constructor. Take and store a @@ -1582,7 +1585,7 @@ namespace Threads * underlying class to a * local type. */ - typedef MemFunData1::FunPtr FunPtr; + typedef typename MemFunData1::FunPtr FunPtr; /** * Constructor. Take and store a @@ -1719,7 +1722,7 @@ namespace Threads * underlying class to a * local type. */ - typedef MemFunData2::FunPtr FunPtr; + typedef typename MemFunData2::FunPtr FunPtr; /** * Constructor. Take and store a @@ -1859,7 +1862,7 @@ namespace Threads * underlying class to a * local type. */ - typedef MemFunData3::FunPtr FunPtr; + typedef typename MemFunData3::FunPtr FunPtr; /** * Constructor. Take and store a @@ -2004,7 +2007,7 @@ namespace Threads * underlying class to a * local type. */ - typedef MemFunData4::FunPtr FunPtr; + typedef typename MemFunData4::FunPtr FunPtr; /** * Constructor. Take and store a @@ -2152,7 +2155,7 @@ namespace Threads * underlying class to a * local type. */ - typedef MemFunData5::FunPtr FunPtr; + typedef typename MemFunData5::FunPtr FunPtr; /** * Constructor. Take and store a @@ -2305,7 +2308,7 @@ namespace Threads * underlying class to a * local type. */ - typedef MemFunData6::FunPtr FunPtr; + typedef typename MemFunData6::FunPtr FunPtr; /** * Constructor. Take and store a @@ -2673,7 +2676,7 @@ namespace Threads * @p{[begin[i],end[i])}. */ template - std::vector > + typename std::vector > split_range (const ForwardIterator &begin, const ForwardIterator &end, const unsigned int n_intervals); @@ -4499,7 +4502,7 @@ namespace Threads template - std::vector > + typename std::vector > split_range (const ForwardIterator &begin, const ForwardIterator &end, const unsigned int n_intervals) {