This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: something wrong with template instantiation mechanics
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: something wrong with template instantiation mechanics
- From: Oleg Krivosheev <kriol at fnal dot gov>
- Date: Mon, 13 Oct 1997 15:41:14 -0500 (CDT)
- cc: egcs at cygnus dot com, stl at sgi dot com
Hi, All
i admit being wrong - looks like g++ works according to draft.
There is another closely related problem:
Tons of code in SGI STL use old style declaration.
>From iterator.h:
template<....>
class reverse_iterator {
....
friend bool operator==(const self& x, const self& y);
friend bool operator<(const self& x, const self& y);
friend Distance operator-(const self& x, const self& y);
friend self operator+(Distance n, const self& x);
....
};
template <....> bool operator==( .... ) {
}
etc
After fixing my stuff so g++ instantiates all what i asked for,
i'm getting tons of uninstantiated op==, op!= etc
for some iterators.
thanks
OK