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
 Refactor Implement on Pure Virtual
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

joracine
Senior Member

36 Posts

Posted - Sep 10 2008 :  2:43:43 PM  Show Profile  Reply with Quote
Hi there,

When using Refactor-Implement on a pure virtual method in C++ (virtual void asd() = 0), the method is implemented as:

void FIFOQueue::Enqueue(MethodRequest* Request) /*= 0
												{

												}

Which is wrong... It shouldn't be implemented, and if it was, it shouldn't be implemented like that.

I believe the expected behavior should be no action, just like when you try to do an refactor-implement on a function that is declared inline (void bleh() {}).

Thanks!

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 10 2008 :  3:54:01 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=6439
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Sep 11 2008 :  10:43:09 AM  Show Profile  Reply with Quote
Create Implementation should be offered on pure virtual functions, since it is valid C++ code to give them an implementation. You just have to call the implementation manually in your code, since the function is marked as pure.

This is useful when providing a default implementation that you have to manually call, to make you stop and think about it.

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 27 2009 :  9:19:14 PM  Show Profile  Reply with Quote
case=6439 is fixed in build 1715

Whole Tomato Software, Inc.
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