Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactor Implement on Pure Virtual

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 - Sep 10 2008 : 2:43:43 PM
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!
3   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jan 27 2009 : 9:19:14 PM
case=6439 is fixed in build 1715
feline Posted - Sep 11 2008 : 10:43:09 AM
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.
accord Posted - Sep 10 2008 : 3:54:01 PM
I am seeing the same effect here. Thank you for the clear description.

case=6439

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