With many C++ classes I need to do operator overloading.
It would be nice if these functions were recognized by Refactor's move to source file / move to header so that they can be moved as well.
Show a right-click menu on the "operator" keyword and display the menu "move to source file" / "move to header".
bool Product::operator==(Product &c)
if (strcmp(productName, c.GetProductName()) == 0)
return (amount == c.GetAmount() && productNumber == c.GetProductNumber() && unitPrice == c.GetUnitPrice());
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.