3 ms·
Probably because everyone still has the numerous starting experiences in the back of their head where they thought their code must be correct and it couldn't po
by pingyong 7y ago
Probably because everyone still has the numerous starting experiences in the back of their head where they thought their code must be correct and it couldn't possibly your fault only to realize the next day that it was absolutely your fault.
It definitely took me a while to realize that VS was just always executing the default statement of a switch (instead of an applying case) if the default was at the top of the switch instead of the bottom, and only when the switch was being executed at compile time in a constexpr context.