On Thursday, 6 November 2014 at 23:43:19 UTC, Meta wrote:
How can I tell at the points marked in the above code if the class or struct instance was declared as const, shared, etc.? Is this possible?
You can't do that, but you can overload on const void doSomething() const { called on const instance } void doSomething() { called on mutable }