
29 Sep
2005
29 Sep
'05
1:43 p.m.
In article <BAY104-DAV1150B74243DE0C91E6C3DDBF8C0@phx.gbl>, Daryle Walker <darylew@hotmail.com> wrote:
Actually, under my opinion/theory, NO function, member function, or operator returns a const non-reference. That's includes the post-increment operator. However, I don't have the "Exceptional C++" book, so I don't know the author's reasoning for his opinion.
Implement a post-increment that returns a non-const, then see what x++++ does, and you'll understand the reasoning :-) hth Ben -- I changed my name: <http://periodic-kingdom.org/People/NameChange.php>