xaxxon
xaxxon

Reputation: 19781

How to work around CLion 2017.2 thinking constexpr if's make everything after unreachable

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?

enter image description here

Upvotes: 2

Views: 454

Answers (1)

Valdemar
Valdemar

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

Related Questions