fork(1) download
  1. class A {
  2. public:
  3. A(int) {}
  4. A& operator=(int){return *this;}
  5. };
  6.  
  7. class B: public A {
  8. using A::A;
  9. using A::operator=;
  10. };
  11.  
  12. int main()
  13. {
  14. B a(1), b(1);
  15. a = b;
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5540KB
stdin
Standard input is empty
stdout
Standard output is empty