mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 22:14: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>
|
template <class T>
|
||||||
inline bool is_zero(T v)
|
inline bool is_zero(T v)
|
||||||
{
|
{
|
||||||
#if !defined(__GNUC__)
|
#if !defined(__GNUC__) && !defined(__clang__)
|
||||||
return v == 0;
|
return v == 0;
|
||||||
#else
|
#else
|
||||||
// GCC's '-Wfloat-equal' will complain about comparing
|
// GCC's '-Wfloat-equal' will complain about comparing
|
||||||
|
Reference in New Issue
Block a user