#include <iostream>
#include <string>
struct A
{
virtual void f() = 0;
};
struct B : A
{
void f() override {}
};
int main()
{
const auto p = &B::f;
const bool ok = sizeof(void *) == sizeof( p );
if ( !ok )
std::cout << "Not OK";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKc3RydWN0IEEKewogICAgdmlydHVhbCB2b2lkIGYoKSA9IDA7Cn07CgpzdHJ1Y3QgQiA6IEEKewogICAgdm9pZCBmKCkgb3ZlcnJpZGUge30KfTsKCmludCBtYWluKCkKewoJY29uc3QgYXV0byBwID0gJkI6OmY7Cgljb25zdCBib29sIG9rID0gc2l6ZW9mKHZvaWQgKikgPT0gc2l6ZW9mKCBwICk7CgkKCWlmICggIW9rICkKCSAgICBzdGQ6OmNvdXQgPDwgIk5vdCBPSyI7CgkKCXJldHVybiAwOwp9