if constexpr – why is discarded statement fully checked?
This is just how constexpr if works. If we check [stmt.if]/2 If the if statement is of the form if constexpr, the value of the condition shall be a contextually converted constant expression of type bool; this form is called a constexpr if statement. If the value of the converted condition is false, the first … Read more