debug: add is_valid for floats

This commit is contained in:
Danny Robson 2018-04-19 20:32:30 +10:00
parent 44ef094d04
commit 08073b6ba1

View File

@ -101,3 +101,12 @@ debug_wait [[gnu::constructor]] (void)
await_debugger ();
}
}
///////////////////////////////////////////////////////////////////////////////
template <>
bool
util::debug::validator<float>::is_valid (const float &val) noexcept
{
return !std::isnan (val);
}