logoalt Hacker News

agwatoday at 8:24 PM0 repliesview on HN

Fun fact - in C++ std::sort has undefined behavior, and can crash[1], if you try to sort a container with NaNs in it.

[1] https://stackoverflow.com/questions/18291620/why-will-stdsor...