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
 Implement Interface on template classes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Luke1410
Senior Member

32 Posts

Posted - Feb 14 2011 :  09:58:32 AM  Show Profile  Reply with Quote
Just a small feature request to improve the usability of ImplementInterface

sample:

class A
{
   virtual void foo() = 0;
};

template<class T> class B : public A
{
};


Rightclick on A in "template<class T> class B : public A" and choose: Refactor -> Implement Interface -> virtual void foo()

The default implementation of "void foo()" is put into the cpp file.
Since class B is a template class, the implementation should actually be inlined in the header instead.

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Feb 14 2011 :  11:45:51 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=55139

If you have a lot of code like this you may find VA Outline helpful for moving the implementations into the header file, since you can select several of them in VA Outline, cut them, and then paste them into the header file.

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

support
Whole Tomato Software

5566 Posts

Posted - Mar 17 2011 :  11:44:57 PM  Show Profile  Reply with Quote
case=55139 is fixed in build 1845

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