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 namespaces and create declaration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jwiesemann
Junior Member

14 Posts

Posted - Sep 22 2009 :  10:49:24 AM  Show Profile  Reply with Quote
Hi,

when trying to use create declaration on a function that belongs to a namespace that spreads over several files VA likely puts the declaration to the wrong file:

file1.h

namespace foo
{
void function1(void);
}

file2.h

namespace foo
{
void function2(void);
}

file1.cpp
namespace foo
{
void function1(void) {}

void function3(void) {}
}

file2.cpp
namespace foo
{
void function2(void) {}

void function4(void) {}
}

Create declaration will put function3 and function4 to the same header file. (I gues it always is the last one read.) This is quite annoying when working with a large library that's in a namespace.

Create implementation has the same problem!

VA_X.dll file version 10.5.1727.0 built 2009.06.12
With VC++ 6.0 and VC++ 2008 professional.

Joachim

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 23 2009 :  4:44:12 PM  Show Profile  Reply with Quote
I tried it and it worked for me in VS2008 and VA 1736.
Are file1.h and file1.cpp in the same directory?
Are file2.h and file2.cpp in the same directory?
What happens if you press alt+o from file1.h and what happens if you press alt+o from file2.h. Do you get to the corresponding file?

Can you please try the latest build to see if this helps?
http://www.wholetomato.com/binaries/VA_X_Setup1736.exe
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