fork download
  1. #include <iomanip>
  2. #include <iostream>
  3.  
  4.  
  5. class foo {
  6.  
  7. int & i;
  8.  
  9. };
  10.  
  11.  
  12. int main (void) {
  13.  
  14. std::cout << std::boolalpha << (sizeof(foo)==sizeof(int *)) << std::endl;
  15.  
  16. }
  17.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
true