fork download
  1. class Foo
  2. {
  3. private:
  4. Foo(int){};
  5.  
  6. public:
  7. static void foo();
  8. };
  9.  
  10. void Foo::foo()
  11. {
  12. //Foo f1; //illegal
  13. Foo f2(1); //legal
  14. }
  15.  
  16. int main()
  17. {
  18.  
  19. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty