]> https://gitweb.dealii.org/ - dealii.git/commit
Work around a problem in Suns Forte compiler, which choked on the explicit qualificat...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 20 Mar 2002 12:43:38 +0000 (12:43 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 20 Mar 2002 12:43:38 +0000 (12:43 +0000)
commitd24feac5b9d94a8ccd68253aa056ea1350be080d
treea05e8db69da0c2306b039f38b9a95302c4726c6f
parentde963575db01e741c7e4d4c15da98637e41ef79f
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.