I did a copy and paste test and got an error saying "error: 'x.f' does not exist" in Visual Studio 2010 ultimate edition.
An alternative way is to make a variable, say, temp, to store the result return from f() and then view the temp variable from Locals or Watch window or Immediate window etc... Hence, I add a little bit more code:
void main( void )
int temp = x.f();
return; // Set the breakpoint here and try to evaluate x.f()
After that, it evaluates temp without errors or warnings.
Hope this helps
Proposed as answer byliurong luoMonday, September 20, 2010 9:19 AM
Marked as answer byliurong luoTuesday, September 21, 2010 9:56 AM