Boost logo

Ublas :

From: Paul C. Leopardi (paul.leopardi_at_[hidden])
Date: 2007-03-25 19:09:31


On Mon, 26 Mar 2007, Paul C. Leopardi wrote:
> Hi Dima,
> My reply is below.
>
> On Mon, 26 Mar 2007, Sorkin Dima wrote:
> > Hi.
> > I'm continuing with MIPSpro compilation
> > of uBLAS based code, and additional flaw
> > was found:
> > member classes (mainly iterator, const_iterator)
> > are accessing private fields of their enclosing
> > classes (vector,vector_range, vector_unary ... many more)
> >
> > They should be declared as friends, according
> > to B.Stroustrup "The C++ prog lang" C.11.3.
> >
> > I don't know what the standard says, yet.
>
> This is the subject of an issue. See
> http://std.dkuug.dk/jtc1/sc22/wg21/docs/core5.htm#45
> and
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1999/n1186.pdf

See also http://gcc.gnu.org/ml/gcc-bugs/2000-02/msg00319.html