something wrong with template instantiation mechanics
Oleg Krivosheev
kriol@fnal.gov
Mon Oct 13 13:41:00 GMT 1997
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
More information about the Gcc
mailing list