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
 1543: Alt-G/namespace problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kai
Junior Member

11 Posts

Posted - Dec 20 2006 :  08:04:52 AM  Show Profile  Reply with Quote
I've just tried to see if the fix for 'using namespace xxx' in 1543 is actually working. It does for many cases. But i still have some problems. E.g.:

Header (AltGTest2.h):

#ifndef CONFIG_DATA_H_INCLUDED
#define CONFIG_DATA_H_INCLUDED
namespace mm {
  class A
  {
  public:
    A();
    void reset();
  };
}
#endif


Implementation (AltGTest2.cpp):

#include "AltGTest2.h"
using namespace mm;
A::A() {}

void A::reset()
{
}


Alt-G in the header does not jump to the implementation. But if i change the name of the namespace to e.g. 'mmm' (i.e. 3 m's instead of just 2) it works.

Edited by - kai on Dec 20 2006 08:32:55 AM

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Dec 20 2006 :  5:24:36 PM  Show Profile  Reply with Quote
interesting, it turns out it is not actually the length of the namespace name that matters. change the namespace to be called "ZZ" and this works just fine.

For me when I first add the namespace "mm" it is shown in italics briefly, before VA catches up with its local meaning, so something somewhere else is confusing the issue.

case=4206

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 17 2007 :  3:49:53 PM  Show Profile  Reply with Quote
Problem fixed in build 1544.
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