Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 this underlined as invalid, namespace related?1559

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Maxim Posted - Aug 22 2007 : 10:29:44 AM
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:
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 02 2016 : 7:53:48 PM
case=8340 was a duplicate of case=4135.
case=4135 is fixed in build 2089.
feline Posted - Aug 22 2007 : 2:26:53 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000