[Issue 6221] Should be possible to pass struct function returns by 'const ref'.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 30 07:29:09 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6221



--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-06-30 07:24:09 PDT ---
Like I said, I don't know what the right solution is.  Previously I thought
auto ref was the solution, but I'm not so sure.

I agree operators need to accept rvalues, but I don't think const ref will be
acceptable to Andrei.  If this bug report was changed to "it should be possible
to pass both rvalues and lvalues to operators," it would be a valid bug.

-- 
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