Juergen Spitzmueller <[EMAIL PROTECTED]> writes: | Index: dociterator.h | =================================================================== | RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/dociterator.h,v | retrieving revision 1.17 | diff -u -r1.17 dociterator.h | --- dociterator.h 14 Feb 2005 08:17:23 -0000 1.17 | +++ dociterator.h 26 Jun 2005 12:06:33 -0000 | @@ -263,10 +263,11 @@ | /// | friend std::istream & | operator>>(std::istream & is, StableDocIterator & cur); | + /// | + friend bool | + operator==(StableDocIterator const &, StableDocIterator const &); | private: | std::vector<CursorSlice> data_; | }; | - | -bool operator==(StableDocIterator const &, StableDocIterator const &);
A friend declaration is not a forward declaration. Yes, it works with gcc <= 4.0.x, but with 4.1 it will fail. Other than this the change feels correct. See if you kan get Andre to comment. -- Lgb