Topic: operator with empty template argument list
Author: Michal Iglewski <iglewski@uqah.uquebec.ca>
Date: 1998/12/10 Raw View
I'm currently using g++-2.8.1.
Does the following piece of code from istream_iterator class correspond
to the standard?
template <class T, class Distance = ptrdiff_t>
class istream_iterator {
friend bool
operator== <> (const istream_iterator<T, Distance>& x,
const istream_iterator<T, Distance>&
y);
// deleted stuff
};
In particular, it seems to me that it is impossible to derive the
line
friend bool
operator== <> (const istream_iterator<T, Distance>& x,
const istream_iterator<T, Distance>&
y);
in the current C++ grammar.
iglewski@uqah.uquebec.ca
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]