Mail Archives: djgpp/1999/09/21/08:52:54
> I suggest making smaller test example (to be more sure somebody will take
> a look at it) and to ask a question in gcc mailing list (gcc AT gcc DOT gnu DOT org).
Ok, I will do that.
By the way, it seems that the problem is related to these
declarations in the class body:
friend Vector<T> operator + <> (const Vector<T>&, const Vector<T>&);
friend Vector<T> operator - <> (const Vector<T>&, const Vector<T>&);
friend Vector<T> operator * <> (const Vector<T>&, const T&);
friend Vector<T> operator * <> (const T&, const Vector<T>&);
friend Vector<T> operator / <> (const Vector<T>&, const T&);
If I remove them, everything goes all right. No errors occur while
compiling and the code seems to work like it should.
Am I possibly doing something completely wrong here? How should this kind
of code be written in the first place (according to the standard, that
is)?
- Raw text -