]> https://gitweb.dealii.org/ - dealii-svn.git/commit
Work around a problem in Suns Forte compiler, which choked on the explicit qualificat...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Mar 2002 12:43:38 +0000 (12:43 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Mar 2002 12:43:38 +0000 (12:43 +0000)
commit7d71a72cc5baa99dac4660cef36edac33836d119
tree8dbd1e2a948b396ae0644f505ea398320137f832
parent45639a964d9d52c8debb2e700ed1c45242ae87a5
Work around a problem in Suns Forte compiler, which choked on the explicit qualification of a member template when that member template is an operator, as in
/* --------------------------------------- */
/* Problem 9 -- selecting member templates */
/* by template keyword                   */
/* (Why does it make a difference whether  */
/* member function or operator?)           */
class T7 {
    template <typename T> void operator << (T);
    template <typename T> void f (T);
    void g() {
      this->template f<int> (1);           // OK!
      this->template operator<< <int> (1); // not!
    };
};

Work around by introducing a common function for the template and the nontemplate function.

git-svn-id: https://svn.dealii.org/trunk@5598 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/base/include/base/logstream.h

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.