]> https://gitweb.dealii.org/ - dealii.git/commit
Work around the following bug in Sun's Forte compiler, by simply
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 25 Mar 2002 16:13:44 +0000 (16:13 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 25 Mar 2002 16:13:44 +0000 (16:13 +0000)
commit63d30a172b03caff3f7a6b51d02591749ec2d45e
tree384284e85c83c040a7dfdfe508af9ae5158a8eef
parent4e29ce761b99154aa2d6754c1383c5e1c8abb79f
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.