Is is possible to get a callers graph for overloaded operators?
I have a simple struct with a natural ordering which I have represented by overloading the relational operators. Looking back through the code, it appears that I made a mistake in defining operator >
. I had set the greater than to simply return the negation of operator <
(this is not correct as this will mean that (val1 > val2) == true
when val1 == val2
).
Anyway before fixing this, I want to check where the >
operator is called in the rest of the code to make sure there are no unintended consequences. This does not seem to be possible using the Visual Studio 2005 call browser. When I search for the function, it recognises where it is defined in the code, but lists there being no calls to or from that function, which is not the case.
Aside from searching through all instances of ">" in my project code do I have any other options?
This page - http://msdn.microsoft.com/en-us/magazine/cc163658.aspx#S3 - indicates that detecing operator calls is not something that was originally in VS2005, but I can't tell if this has changed.