I would like to inherit from a class with the const specifier like this:
const
class Property { int get() const; void set(int a); }; class Co
I have a trick, not a clean solution.
class ConstChild : private Property { operator const Property () { return *this; } };
then
ConstChild cc; cc.set(10); // ERROR cc().get();