
10 Oct
2009
10 Oct
'09
10:46 a.m.
I came across an interesting problem: what.let(_placeholder = this); fails to compile, because 'this' is a const pointer. A simple workaround: MyClass *_this = this; what.let(_placeholder = _this); But surely this shouldn't be necessary? Couldn't the right hand side of the let be declared const? Regards, Ami.