fork download
  1. #define SOME_VALUE (10)
  2.  
  3. class Foo {
  4. public:
  5. Foo() {};
  6. Foo(int bar) : bar_(bar) {
  7. }
  8.  
  9. int bar_;
  10. };
  11.  
  12. int main(){
  13. Foo myObj; // Works
  14. Foo otherObj(SOME_VALUE); // Fails
  15. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty