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
 Problem with using namespace inside namespace
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jwiesemann
Junior Member

14 Posts

Posted - Sep 22 2009 :  11:07:09 AM  Show Profile  Reply with Quote
Hi!

When working with nested namespaces a using namespace inside an outer namespace is not completely recognized by VA.

Minimum example:

namespace library
{
namespace mathfunctions
{
void test(void);
}

using namespace mathfunctions;
}

void test1(void)
{
library::test();
}

When moving the cursor to test inside of test1 VA doesn't show a declaration in the navigation bar and says "Refatoring not available on symbol".

(Find references on test (inside mathfunctions) does find the call in test1.)

VA_X.dll file version 10.5.1727.0 built 2009.06.12
Same behavior under VC++ 6.0 and 2008.

Joachim

Edited by - jwiesemann on Sep 22 2009 11:09:01 AM

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Sep 24 2009 :  1:14:12 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description. I think this is covered by:

case=8809

currently it is possible to confuse VA with namespaces, as this code shows. If you edit the file with the function "test1" in it, then "test" on the line "library::test()" will be underlined as a mistyped symbol, which is why refactoring and other commands are not working correctly on it.

Underlining of mistyped symbols does not trigger until you edit the file, as an optimisation, which is why you are probably not seeing the underlining at first.

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

support
Whole Tomato Software

5566 Posts

Posted - May 12 2011 :  12:42:17 AM  Show Profile  Reply with Quote
case=8809 is fixed in build 1848

Whole Tomato Software, Inc.
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