fork download
  1. class CMatrix4x4 {};
  2.  
  3. class CVector4
  4. {
  5. public:
  6. CVector4& operator*(CMatrix4x4&); //I cause an error in the implementation
  7. CVector4& operator*(float); //But I do not??
  8. };
  9.  
  10. //...
  11. //No instance of overloaded function "CVector4::operator" matches the specified type
  12. CVector4& CVector4::operator*(CMatrix4x4& m)
  13. {
  14. CVector4 v;
  15. return v;
  16. }
  17.  
  18. int main() {}
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty