constaint pointer to non const member

how to do this?

int MyClass::*whatever;

I want whatever to be const, but the int non-const.
int MyClass::* const whatever = &MyClass::some_nonstatic_member_of_type_int;
Last edited on
Topic archived. No new replies allowed.