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
 1810: Move implementation of destructor
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

andre.horst
Tomato Guru

Germany
150 Posts

Posted - Feb 11 2010 :  09:59:16 AM  Show Profile  Reply with Quote
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 ~.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 12 2010 :  8:36:35 PM  Show Profile  Reply with Quote
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() {}
};

Edited by - accord on Feb 12 2010 8:36:50 PM
Go to Top of Page

andre.horst
Tomato Guru

Germany
150 Posts

Posted - Feb 15 2010 :  05:19:39 AM  Show Profile  Reply with Quote
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 ;
	}
};
Go to Top of Page

andre.horst
Tomato Guru

Germany
150 Posts

Posted - Feb 15 2010 :  05:20:49 AM  Show Profile  Reply with Quote
Forgot to say, that i also tried 1812
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 15 2010 :  3:29:07 PM  Show Profile  Reply with Quote
OOps. It seems to be a regression, it is new and is working with 1738.

case=39777
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