Hacker News new | past | comments | ask | show | jobs | submit login
Red Hat at ISO C++ Standards Meeting 2014 (redhat.com)
47 points by origamimissile on May 28, 2014 | hide | past | favorite | 2 comments



Some of these new sources of undefined behavior are quite concerning.

Converting an enum to a value outside it's range is extremely common, as enums are frequently used as bitmasks and the like.

The bit about optional will likely break a fair amount of code which performs functions similar to optional as well.


It's not quite that bad. Instead, it's the number of bits used by the enumerators. This makes bitwise operations safe on enumerators because or'ing and the like will not result in using more bits than any enumerator.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: