- 
    Bug 
- 
    Resolution: Fixed
- 
    P3: Somewhat important 
- 
    Qt Creator 4.9.0, Qt Creator 4.10.0, Qt Creator 4.11.0-beta1
- 
        
- 
        b1a781b81 (master), 154287316 (master)
Actions:
Create class:
class Demo{ template <typename T, std::enable_if_t<std::is_enum_v<T>, bool> = true> void print(); };
move cursor to method print(), do mouse right click and select **Refactor > Add Definition Outside Class.
Observation: 
Definition is generated as follow: 
template<typename T, std::enable_if_t>
void Demo::print()
{ 
}
Expectation:
The ```<std::is_enum_v<T>, bool>``` must not be omitted in method definition
template<typename T, std::enable_if_t<std::is_enum_v<T>, bool>>
void Demo::print()
{ 
}
| For Gerrit Dashboard: QTCREATORBUG-22954 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 668000,4 | CppEditor: Fix pretty-printing of type constraint template parameters | master | qt-creator/qt-creator | Status: MERGED | +2 | -1 | 
| 672839,2 | CPlusPlus: Fix parsing constant template parameters with default value | master | qt-creator/qt-creator | Status: MERGED | +2 | -1 |