Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 this underlined as invalid, namespace related?1559
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maxim
Ketchup Master

59 Posts

Posted - Aug 22 2007 :  10:29:44 AM  Show Profile  Reply with Quote
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:

Edited by - Maxim on Aug 22 2007 10:43:28 AM

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Aug 22 2007 :  2:26:53 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=8340

Interestingly enough alt-g is working perfectly on this code, so VA generally knows what is going on here.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 02 2016 :  7:53:48 PM  Show Profile  Reply with Quote
case=8340 was a duplicate of case=4135.
case=4135 is fixed in build 2089.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000