fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct base
  5. {
  6. void foo(int){}
  7. };
  8.  
  9.  
  10. struct der: base
  11. {
  12. using base::foo;
  13. void foo(){}
  14.  
  15. };
  16.  
  17. int main() {
  18.  
  19. der d;
  20. d.foo(10);
  21. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty