This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: something wrong with template instantiation mechanics



  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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]