Global overloading of == and != for floating-points
问题 Is it a bad practice to overload global operator == and != for floating points ? I'm using fast floating-points in a game environement, and i was thinking about using fuzzy comparison everywhere as i can't imagine a situation where i don't expect extremely close numbers not to be equals. Any advice ? 回答1: Other posts mentioned technical problems, from another perspective: Its a bad practice because nobody expects these operators to be overloaded, while reasonable people will expect an