Bug 510290 - "Implement method" on template method of template class only generates one template parameter list
Summary: "Implement method" on template method of template class only generates one te...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 9.3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-11 12:18 EST by Nathan Ridge CLA
Modified: 2020-09-04 15:23 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 Nathan Ridge CLA 2017-01-11 12:18:19 EST
Starting with the following code:

template <typename T>
struct Waldo {
    template <typename U>
    void find();
};

invoking "Implement method" on Waldo::find() produces:

template <typename U>
inline void Waldo<T>::find()
{
}

This is invalid; there should be a second template parameter list, like so:

template <typename T>
template <typename U>
inline void Waldo<T>::find()
{
}