------- Additional Comments From bangerth at dealii dot org 2005-06-29 13:45 ------- > Well it compiles perfectly fine on a Sun Solaris Machine with > Sun Studio 9 installed that has the Sun CC compiler. Also It > was written by a Computer Science Professor at the University > of Illinois at Urbana-Champaign, a school ranked in the list > of the top 5 in the nation for Computer Science. What does > not look like C++ to you, > > This is a templated overloaded operator*() that has a return > type as a const reference to the element type. Returns by > const_reference the cell storing the element to which this > const_iterator points to. You certainly understand that the person who asked the question, Gabriel Dos Reis is a member of the C++ standardization committee, right? I would assume that he has a better understanding of C++ than the average CS professor, even if, as you make sure to point out, this professor is from a good school. That being said, the code you quoted in your original submission is template <class Etype> typename list<Etype>::reference list<Etype>::const_iterator*() const That's definitely not an operator*. I believe that you simply did a copy-paste error, because this code doesn't appear anywhere in the sources you sent, but that's not an excuse to be disrespectful to others in this forum. W.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22227