fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. class Foo{
  5. public:
  6. Foo(std::string bar_, int baz_ = 7)
  7. :bar(bar_)
  8. ,baz(baz_)
  9. {}
  10.  
  11. private:
  12. std::string bar;
  13. int baz;
  14. Foo();
  15. };
  16.  
  17. int main(){
  18.  
  19. Foo foo();
  20. }
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout

Standard output is empty