Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I do wonder why they didn't special-case std::less for floats. They already did it for pointers - operator< for pointers isn't even defined, much less a strict weak order, if the operands do not point to the same object (region of storage). This is in order to facilitate non-flat addressing schemes. std::less, however, is explicitly specified to work with any pair of pointers.


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

Search: