odd template collapsing

Answered

I like CLion's code collapsing, but it sometimes gives strange results.

For example, this:

template <typename T, typename = std::enable_if_t<std::is_integral<T>::value>>
void foo(T n) {
// process n
}

looks like this when collapsed:

<T,=std::enable_if_t<std::is_integral<T>::value>>
void foo(T n) {
// process n
}
0
2 comments

strange

0

Hi! You can disable 'Settings | Editor | General | Code Folding | Collapse by default: Template parameters'.

Also feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-10275.

See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

0

Please sign in to leave a comment.