summaryrefslogtreecommitdiff
path: root/boost/smart_ptr/intrusive_ptr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/smart_ptr/intrusive_ptr.hpp')
-rw-r--r--boost/smart_ptr/intrusive_ptr.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/boost/smart_ptr/intrusive_ptr.hpp b/boost/smart_ptr/intrusive_ptr.hpp
index ef682df96c..733be391fb 100644
--- a/boost/smart_ptr/intrusive_ptr.hpp
+++ b/boost/smart_ptr/intrusive_ptr.hpp
@@ -13,6 +13,8 @@
// See http://www.boost.org/libs/smart_ptr/ for documentation.
//
+#include <boost/smart_ptr/detail/requires_cxx11.hpp>
+
#include <boost/config.hpp>
#include <boost/assert.hpp>
@@ -245,7 +247,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