mirror of
https://github.com/boostorg/functional.git
synced 2025-08-01 21:44:28 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user