Re: std.variant and const

2010-08-07 Thread Lutger
Jonathan M Davis wrote: > On Saturday 07 August 2010 05:42:53 Lutger wrote: >> Variant in phobos doesn't work well with being const, toHash and opEquals >> for example are not marked as const methods. I have tried to work around >> it with careful casting, but it is too unsafe and just too complex

Re: std.variant and const

2010-08-07 Thread Jonathan M Davis
On Saturday 07 August 2010 05:42:53 Lutger wrote: > Variant in phobos doesn't work well with being const, toHash and opEquals > for example are not marked as const methods. I have tried to work around > it with careful casting, but it is too unsafe and just too complex for > something that is suppo

std.variant and const

2010-08-07 Thread Lutger
Variant in phobos doesn't work well with being const, toHash and opEquals for example are not marked as const methods. I have tried to work around it with careful casting, but it is too unsafe and just too complex for something that is supposed to make life easier. Does anybody know if this i