Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Inner class constructor not working

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
joracine Posted - Dec 24 2008 : 10:55:03 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
joracine Posted - Dec 24 2008 : 1:26:41 PM
Was already doing that, thanks ;)
feline Posted - Dec 24 2008 : 1:13:04 PM
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

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