4 ms·
C++ has roughly the same undefined behaviors as C, plus a bunch of additional ones for the C++ specific features. Also, you'd be surprised how many stubborn C
by the_why_of_y 11y ago
C++ has roughly the same undefined behaviors as C, plus a bunch of additional ones for the C++ specific features.
Also, you'd be surprised how many stubborn C programmers apparently think that mutable global variables are an excellent and convenient time-saver. (Not that C++ programmers do inherently any better here, cf. Singleton)
- cwzwarich 11y agoThe C spec also has a handy appendix listing all undefined behavior, which IIRC the C++ spec does not have.