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
 Feature Requests
 Refactoring: Template class
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

str
Junior Member

13 Posts

Posted - Jan 05 2021 :  09:21:25 AM  Show Profile  Reply with Quote
Hi,
following example:
class Foo
{
void f();
};

void Foo::f()
{
}

Later you want to make Foo a template class:

template <typename T>
class Foo
{
void f();
};

template <typename T>
void Foo<T>::f()
{
}

If Foo has a lot of member functions this could be a huge amount of work and could easily be done automatically.

Best regards
Steffen

feline
Whole Tomato Software

United Kingdom
17095 Posts

Posted - Jan 06 2021 :  07:55:34 AM  Show Profile  Reply with Quote
An interesting idea, and this makes quite a bit of sense, I have put in a feature request to see what our developers make of this:

case=144282

for now, if you often have to do this, you could do some, or even a lot of the changes with a regular expression find and replace, with care.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000