fork download
  1. #include <iostream>
  2.  
  3. struct Integer {
  4. Integer(int value) {
  5. std::cout << "ctor: value = " << value << std::endl;
  6. }
  7. };
  8.  
  9. int main() {
  10. class Integer i(42);
  11. }
Success #stdin #stdout 0s 3344KB
stdin
Standard input is empty
stdout
ctor: value = 42