Merge pull request #98 from egorpugin/patch-1

Add missing ifdef check.
This commit is contained in:
Peter Dimov
2022-10-11 02:55:52 +03:00
committed by GitHub

View File

@ -245,7 +245,7 @@ template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const
return a != b.get();
}
#if __GNUC__ == 2 && __GNUC_MINOR__ <= 96
#if defined(__GNUC__) && __GNUC__ == 2 && __GNUC_MINOR__ <= 96
// Resolve the ambiguity between our op!= and the one in rel_ops