fork download
  1. struct mat4 {};
  2.  
  3. struct Base {
  4. void operator*(float) {}
  5. };
  6.  
  7. struct Derived : Base {
  8. using Base::operator*;
  9. void operator*(mat4) {}
  10. };
  11.  
  12.  
  13. int main() {
  14. Derived d;
  15. mat4 m;
  16. d * m;
  17. d * 4.2f;
  18. return 0;
  19. }
  20.  
  21.  
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty