Bug 512355 - Do not put inline keyword in method implementation if the class is template
Summary: Do not put inline keyword in method implementation if the class is template
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 9.2.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 05:33 EST by Yan Pas CLA
Modified: 2020-09-04 15:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yan Pas CLA 2017-02-17 05:33:09 EST
template <typename T>
class Test {
void foo();
};

After clicking implement method, cdt generates the following code

template <typename T>
inline void Test<T>::foo() {
}

"inline" here is extra.