S
sb
Given this relationship,
class Base {
//...
};
class Derived : public Base {
//...
bool myself(const void* p) { return p == this}
};
Is there a guarantee in the standard that
Derived d;
Base* p = &d;
d.myself((void*)p); // - ?
will be always true?
class Base {
//...
};
class Derived : public Base {
//...
bool myself(const void* p) { return p == this}
};
Is there a guarantee in the standard that
Derived d;
Base* p = &d;
d.myself((void*)p); // - ?
will be always true?