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
isinf
isnan
std::is
The following article has some interesting tricks for isnan and isinf: http://jacksondunstan.com/articles/983