Usage of if constexpr in template
I am trying to understand the utility of if constexpr and want to know if there is any utility in using it in this way. template<bool B> int fun() { if constexpr (B) return 1; return 0; } Is this function changed at all by using if constexpr instead of a regular if? I assume… Read More Usage of if constexpr in template