Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一些书中看到赋值运算符,函数调用运算符等可以通过使用成员函数而不是通过友元函数重载。为什么某些运算符不能通过使用友元函数重载?