fork download
  1. struct A{
  2. private: int b;
  3. private: A() : b(0) {}
  4. private: A(int c) : b(c) {}
  5. protected: static A make_A(int c) {return A(c);}
  6. };
  7.  
  8. struct C : public A {
  9. C() : A(make_A(4)) {}
  10. };
  11.  
  12. int main() {
  13. C d;
  14. }
Success #stdin #stdout 0s 2880KB
stdin
Standard input is empty
stdout
Standard output is empty