I think the typedef thing has been discussed in other topics but not quite like this.
class T {
public:
protected:
private:
typedef struct X { int m_y; int m_z; }m_C;
struct Y { int y; int z; }m_Y;
};
m_C does not match the color of m_Y
Thanks Chris
VA_X.dll file version 10.3.1559.0 built 2007.07.06 VAOpsWin.dll version 1.3.2.4 VATE.dll version 1.0.5.8 DevEnv.exe version 7.10.3077.0 msenv.dll version 7.10.3077.0 Font: Bitstream Vera Sans Mono 11(Pixels) Comctl32.dll version 5.82.2900.2982 Windows XP 5.1 Build 2600 Service Pack 2 Single processor
I am seeing the same thing here, but what is "m_Y"? It is not coloured as a type, but I cannot use it as a type. I added a constructor to the class to test this, and both statements:
m_Y foo;
struct m_Y boo;
fail to compile. Since this seems to suggest it is not a type, why should it be coloured as a type?
I was wondering if I was supposed to understand that code. Even after a fair bit of experience I come across C++ code that confuses me every now and then