Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1810: Move implementation of destructor

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
andre.horst Posted - Feb 11 2010 : 09:59:16 AM
WinXP SP3, VC++6.

I try to move the implementation of a destructor from header to source file via the refactor menu and it doesnt work, regardless if I select the destructor name with or without the ~.
4   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Feb 15 2010 : 3:29:07 PM
OOps. It seems to be a regression, it is new and is working with 1738.

case=39777
andre.horst Posted - Feb 15 2010 : 05:20:49 AM
Forgot to say, that i also tried 1812
andre.horst Posted - Feb 15 2010 : 05:19:39 AM
Your case works fine. Add "virtual" to the destructor and it will not work anymore . Here is my small test class

class CTest  
{
public:
	CTest()
	{
	}
	virtual ~CTest()
	{
		int i = 0 ;
	}

	void f( void )
	{
		int i = 0 ;
	}
};
accord Posted - Feb 12 2010 : 8:36:35 PM
Which Visual Assist version are you using? It is working for me using VA 1812 witch is the latest beta version so it may be fixed since.

Is it working for you in simple cases like:

class oneclass
{
    ~oneclass() {}
};

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