If I have a class that contains an overloaded == operator function, how do I find out where this overloaded operator is being used throughout the code? (Other than placing a break point inside the overloaded == method and seeing if the code ever hits it.) I tried going to the class view in Visual Studio, right clicking on the method, and selecting “Find all references” but it claims there are no references when I know there is at least one that I added.
Share
Temporarily make the operator private and unimplemented. That will catch the uses when you compile.