Reputation: 19781
I know CLion 2017.2 has very limited support for C++17 features (basically everything other than nested namespaces), but it's especially frustrating that it treats constexpr if's as if everything after is unreachable code until the end of the function.
Anyone know a workaround to at least get some functionality after the constexpr if to the end of the function?
Upvotes: 2
Views: 454
Reputation: 87
if constexpr
is c++17 feature, which is not support by CLion yet, so it don't understand what happen in code.
If you bother only with unreachable code
highlighting you can disable that inspection completly in settings
Or disable it on particular code sample
Sadly, there currently is no way to disable wavy red line
Upvotes: 1