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


Jonathan M Davis <jmdavisp...@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisp...@gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisp...@gmx.com> 2011-09-26 00:27:57 
PDT ---
It's not just a question of shared. If you declare opCast on a struct, you can
cast to that _exact_ type (so S can be cast to S and const S can be cast to
const S), but you can't cast cast to any other version of that type (so, S
can't be cast to const S, and shared S can't be cast to S). As a workaround,
you can declare an opCast which returns those types, but it shouldn't be
necessary to declare an extra opCast to do what works when you haven't declared
opCast.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to