This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in the egcs STL implementation?
Bavo De Ridder <bavo@ace.ulyssis.student.kuleuven.ac.be> writes:
> no match for `istream_iterator<char,int> & - istream_iterator<char,int> &'
> InputIterators instead of const_iterators are used. Have a look at the
> last line of code: "size_type n2 = j2 - j1;" how can you substract two
> InputIterators?
In general, you can't. The implementation shouldn't rely on that,
it's a bug.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil