fork download
  1. struct foo
  2. {
  3. void foobar(){}
  4. };
  5.  
  6. struct bar : protected foo
  7. {
  8. using foo::foobar;
  9. };
  10.  
  11. int main()
  12. {
  13. bar b;
  14. b.foobar(); // Fine
  15. &bar::foobar; // Not fine
  16. }
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty