how do I make a portable isnan/isinf function

前端 未结 11 1494
遇见更好的自我
遇见更好的自我 2020-11-29 06:02

I\'ve been using isinf, isnan functions on Linux platforms which worked perfectly. But this didn\'t work on OS-X, so I decided to use std::is

11条回答
  •  旧巷少年郎
    2020-11-29 06:29

    The following article has some interesting tricks for isnan and isinf: http://jacksondunstan.com/articles/983

提交回复
热议问题