[Issue 4068] Returning references to const members yield error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 5 10:09:52 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4068
Simen Kjaeraas <simen.kjaras at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Simen Kjaeraas <simen.kjaras at gmail.com> 2010-04-05 10:09:50 PDT ---
(In reply to comment #1)
> This probably is invalid, because the const in that position applies to the
> this pointer. It's equivalent to:
> [...]
> These kinds of errors are why I think allowing const at the beginning of the
> function should be deprecated.
Indeed. Closing this one.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list