News for hackers. Stuff that matters.
Re:The C++ Iceberg by shultays on Wednesday May 08, 2024 @04:27AM (#40295632)

  What I don't get is, why are we still adding more undefined behaviour to the standard?
Because it allows flexibility for compilers to implement features efficiently on various platforms.

You can define undefined behavior if you wish. Make your own unreachable that prints an error and aborts gracefully when reached in debug builds, and calls std::unreachable in release builds.

There are no comments on this comment yet.