On 25 Jun 2001, Lars Gullik Bj�nnes wrote:

> | Index: src/lyxparagraph.h
> | ===================================================================
> | RCS file: /cvs/lyx/lyx-devel/src/lyxparagraph.h,v
> | retrieving revision 1.78
> | diff -u -r1.78 lyxparagraph.h
> | --- src/lyxparagraph.h      2001/05/30 13:53:30     1.78
> | +++ src/lyxparagraph.h      2001/06/24 21:06:53
> | @@ -352,7 +352,6 @@
> |  #endif
> |     ///
> |     bool linuxDocConvertChar(char c, string & sgml_string);
> | -private:
> |     ///
> |     struct InsetTable {
> |             ///
> | @@ -362,6 +361,7 @@
> |             ///
> |             InsetTable(size_type p, Inset * i) : pos(p), inset(i) {}
> |     };
> | +private:
>
> I don't get the rationale for this change. Can you get us the compiler
> error?

The private structs are not visible to the friendly operators even though
the friendly operators are defined within the class.

In fact it seems totally silly to me that the friend operator is defined
within the class body.  We have also had other occasions where it was
necessary to move structs out of private into public or protected spaces
so that friend operators or functions could function -- earlier GUII and
the dec compiler spring to mind.

Allan. (ARRae)

Reply via email to