]> https://gitweb.dealii.org/ - dealii-svn.git/commit
Work around the following bug in Sun's Forte compiler, by simply
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Mar 2002 16:13:44 +0000 (16:13 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Mar 2002 16:13:44 +0000 (16:13 +0000)
commit5a6559a1cc65ce5d878a151446cbe0bd113e6428
treee90700cde9e2b007896499c55cb605094bf6ec5d
parentbfb6adce936e98f1b0a07cfcddf968b472e3cc6f
Work around the following bug in Sun's Forte compiler, by simply
adding a private inheritance of B1. Since that base class only has
static members, that does not hurt anyway.

/* ------------------------------------------------- */
/* Problem 17 -- access control: compiler error      */
/*  Error: B1::dim is not accessible from B1::X<2>.  */
/*         Where: While specializing "B1::X<2>"      */
/*         Where: Specialized in non-template code.  */
/* Note that "dim" should actually be placed with    */
/* B1::X, rather than with B1.                       */
template <typename T> class V {};

struct B1 {
    template <int dim> struct X {
int i[dim];
    };
};

struct B2 : private B1 {};

struct D : public B2, private B1 {
    ~D () {};
    typedef B1::X<2> X;
    V<X> x;
};

D d;

git-svn-id: https://svn.dealii.org/trunk@5618 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/lac/include/lac/matrix_out.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.