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
 Inner class constructor not working
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

joracine
Senior Member

36 Posts

Posted - Dec 24 2008 :  10:55:03 AM  Show Profile  Reply with Quote
Hi there,

I have a small bug with VAX when using classed which are within another class. The Refactor->Create Implementation won't work on the constructor of the inner class. Here's how to reproduce it, and it will be clearer with source code anyway:

OuterClass.h:

class OuterClass
{
public:
private:
	class InnerClass;
	InnerClass* m_InnerClass;
};


InnerClass.h:

class OuterClass::InnerClass
{
public:
	InnerClass();
	~InnerClass();
};


InnerClass.cpp:

#include "OuterClass.h"
#include "InnerClass.h"


Now, if I go on the InnerClass constructor and go to the Refactor sub menu, I do not have the Create Implementation option. It is grayed out. I only get "Add Similar Member", "Change Signature", "Document Method" and "Rename"...

Yet, I have the options on the destructor...

Thanks for looking at this.

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Dec 24 2008 :  1:13:04 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=22136

For now can you simply run Create Implementation twice on the destructor, and then remove the ~ from one of the two implementations? Not ideal, but this should help a bit

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

joracine
Senior Member

36 Posts

Posted - Dec 24 2008 :  1:26:41 PM  Show Profile  Reply with Quote
Was already doing that, thanks ;)
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