const Propagation
Daniel Kozak via Digitalmars-d
digitalmars-d at puremagic.com
Mon Dec 29 07:25:12 PST 2014
On Monday, 29 December 2014 at 15:17:30 UTC, Julian Kranz wrote:
> Thank you for your answers. All of your suggestions go into the
> right direction, however there's still one thing left that
> breakes it: the method itself (blah()) needs to be marked as
> const to be callable on a const object. Therefore, I need
> something like
>
> void blah(...)(...) if(this ia const object) const : nothing {
> }
>
Did you try my solutions? It doesn`t need blah to be const
More information about the Digitalmars-d
mailing list