namespace ns
{
class Foo
{
void foo(Foo* obj);
void bar();
};
} // namespace
using namespace ns;
void Foo::foo(Foo* obj)
{
}
void Foo::bar()
{
foo(this);
}
"this" is underlined, if I get rid of the namespace lines it becomes OK. A few other alterations (eg. put all code inside namespace{} blocks) also make it OK.
VA_X.dll file version 10.3.1559.0 built 2007.07.06
Licensed to:
VA X: XXXX (7-user license) Support ends 2008.07.23
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.5.8
MSDev.exe version 6.0.9782.2
Devshl.dll version 6.0.9782.0
Devedit.pkg version 6.0.9782.0
Font: Consolas 13(Pixels)
Comctl32.dll version 6.0.2900.2180
Windows XP 5.1 Build 2600 Service Pack 2
2 processors
Platform: Win32 (x86)
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Visual Leak Detector\\include;
Library Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\SRC;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\CRT\\SRC;
Other Includes: