Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1543: Alt-G/namespace problem

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
kai Posted - Dec 20 2006 : 08:04:52 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jan 17 2007 : 3:49:53 PM
Problem fixed in build 1544.
feline Posted - Dec 20 2006 : 5:24:36 PM
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

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