fork download
  1. #include <iostream>
  2.  
  3. struct foo { foo(); };
  4. struct bar : foo {};
  5.  
  6. foo::foo() { std::cout << static_cast<bar*>(this); }
  7.  
  8. int main()
  9. {
  10. bar b;
  11. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
0xbfe4da6f