Intellisense warning


  • I have a c++ project in Visual Studio 2010. In a function in one of my classes, I am getting this error/warning:

    Intellisense: a nonstatic member reference must be relative to a specific object.

    When I double click the warning, it highlights a member variable of my class.  The project builds with no errors so evidently the code is correct.  But there is something Intellisense doesn't like.  The member variables in question are underlined in red, what Intellisense does when you use an undefined variable.  It's not critical because, as I said, the code compiles without errors.  But it would be nice to know what's going on so the code is displayed as usual by Intellisense (no red underlines on variables that have been defined without error).  Thanks.


    Thursday, February 18, 2016 10:34 PM


All replies