3 ms·
You may be correct, and I certainly hope you are. But if that's the case then the static_assert behavior seems all the more puzzling. In particular if this code
by toth 10y ago
You may be correct, and I certainly hope you are. But if that's the case then the static_assert behavior seems all the more puzzling.
In particular if this code works, then you can roll your own "static_assert" that will not trigger from the not taken branches.