overloading != operator in a template class doesn't work, (operand types are `testClass` and `testClass`)

后端 未结 0 486
误落风尘
误落风尘 2020-12-04 12:17

I have a template class:

template 
class MyClass {
  public:
    bool operator!=(T&);
  private:
    T item;
};

bool MyClass::ope         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题