Last time I checked, Visual Studio uses a different C++ parser than the compiler. So, it's possible, and common, for the two different parsers to be out of sync. The first thing I'd try is closing VS, blowing away your solution's intellisense database and reloading your project.