cpp/numeric/math/INFINITY

If the implementation supports floating-point infinities, the macro expands to constant expression of type  which evaluates to positive or unsigned infinity.

If the implementation does not support floating-point infinities, the macro expands to a positive value that is guaranteed to overflow a  at compile time, and the use of this macro generates a compiler warning.