Const question

Janice Caron caron800 at googlemail.com
Mon Mar 24 00:38:27 PDT 2008


On 24/03/2008, Craig Black <craigblack2 at cox.net> wrote:
>
> This is still being discussed?  Is Walter considering a fix for it?

Not Walter, Andrei. Andrei has a template solution, Rebindable!().
Unfortunately, right now it's undocumented and shouldn't be used
because it will likely change as D2 changes. I think Andrei is waiting
for D to support opImplicitCast. I think, once we have that, his
template will work as you'd expect.

This is discussed in the thread "Idea to ease tail-const class reference woes".



More information about the Digitalmars-d mailing list