Hello,
The following code doesn't parse correctly:
#include <vector>
#define DEFINE_TABLE(cls) DEFINE_TABLE_ENTRIES(cls)
#define DEFINE_TABLE_ENTRIES(cls)\ cls::TableEntries cls::__entries[] = {
namespace
{
class CMyClass
{
private:
struct TableEntries
{
int a,b;
};
static TableEntries __entries[];
};
DEFINE_TABLE(CMyClass)
{0,0},
{0,0}};
int GetLineCount(const int& colNames)
{
return colNames.size();
}
}
The argument to the GetLineCount function is not recognized (colNames is underlined in red).
My info:
VA_X.dll file version 10.4.1624.0 built 2007.12.07
Licensed to:
VA X: [email protected] (5-user/10-PC license) Support ends 2008.11.27
DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
2 processors
Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include;
C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\include;
;
C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;
Other Includes:
Stable Source Directories:
C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\crt\\src;