In VS 2010 C++ when I type where it gets highlighted, why? It is not a keyword so what's the reason?
Thanks.
views:
131answers:
1
+3
A:
It's a C++/CLI keyword, for constraining generics: http://blogs.msdn.com/b/hsutter/archive/2003/11/23/53519.aspx
The Visual C++ Editor has to do syntax highlighting for both standard C++ and C++/CLI, and there isn't a separate file extension for C++/CLI code.
Ben Voigt
2010-08-29 17:08:53
Then it is a bug or at best a software limitation ...
Panic
2010-08-29 19:32:34
I would say it's a limitation. The editor has to do color-coding of files that are `#include`d into multiple projects with different settings, or when no project is open at all.
Ben Voigt
2010-08-30 00:59:48