How to use std::signaling_nan?

前端 未结 4 565
伪装坚强ぢ
伪装坚强ぢ 2021-01-12 14:56

After looking at another question on SO (Using NaN in C++) I became curious about std::numeric_limits::signaling_NaN().

I could not get si

4条回答
  •  再見小時候
    2021-01-12 15:19

    A word of warning: Using 3rd party DLLs may silently enable these exceptions. This is especially true for loading DLL's that are written in a language that enables them by default.

    I've had that happen in two instances: Printing from an embedded browser control to a HP printer, and registering my DLL (that sets some initial values to NaN) from InnoSetup which is written in Delphi.

提交回复
热议问题