Use is_zero workaround on clang

The same warning appears on clang for windows, but the workaround wasn't
used because the gcc macro wasn't defined.
This commit is contained in:
Daniel James
2017-09-19 12:24:36 +01:00
parent dd14136f44
commit 995370c904

View File

@@ -241,7 +241,7 @@ namespace boost
template <class T>
inline bool is_zero(T v)
{
#if !defined(__GNUC__)
#if !defined(__GNUC__) && !defined(__clang__)
return v == 0;
#else
// GCC's '-Wfloat-equal' will complain about comparing