Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactoring: Template class

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
str Posted - Jan 05 2021 : 09:21:25 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 06 2021 : 07:55:34 AM
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.

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