fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A
  5. {
  6. void run() const { }
  7. };
  8.  
  9. int main() {
  10. std::cout
  11. << sizeof(&A::run) << " sizeof(&A::run)" << std::endl;
  12. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
16 sizeof(&A::run)