-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
Description
| Bugzilla Link | 32203 |
| Resolution | FIXED |
| Resolved on | Jan 22, 2020 16:03 |
| Version | unspecified |
| OS | All |
| Blocks | #35172 #43900 |
| CC | @daphnediane,@JonasToth,@zmodem,@craffael,@tg-m,@Xazax-hun |
| Fixed by commit(s) | rGf9c46229e4ac29053747c96e08c574c6c48d544b |
Extended Description
I have:
template <typename T, typename U>
static constexpr auto eq_impl(T&& t, U&& u) {
if
constexpr(std::is_floating_point<uncvref_t>{}
and std::is_floating_point<uncvref_t>{}) {
// do something
}
else {
// do something else
}
}
and the check readability-braces-around-statements broken for if constexpr complains that
warning: statement should be inside braces [readability-braces-around-statements]
and std::is_floating_point<uncvref_t>{}) {
^
That is, it doesn't recognize the braces after if constexpr :/