mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-01 21:44:38 +02:00
Use __attribute__ syntax instead of C++ attribute syntax for C++03 compatibility
This commit is contained in:
@@ -116,7 +116,7 @@ template<unsigned> struct static_assert_test {};
|
|||||||
//GCC has some false positives with some functions returning references.
|
//GCC has some false positives with some functions returning references.
|
||||||
//This silences this warning in selected functions
|
//This silences this warning in selected functions
|
||||||
#if defined(BOOST_GCC) && (BOOST_GCC >= 140000)
|
#if defined(BOOST_GCC) && (BOOST_GCC >= 140000)
|
||||||
# define BOOST_INTRUSIVE_NO_DANGLING [[gnu::no_dangling]]
|
# define BOOST_INTRUSIVE_NO_DANGLING __attribute__((no_dangling))
|
||||||
#else
|
#else
|
||||||
# define BOOST_INTRUSIVE_NO_DANGLING
|
# define BOOST_INTRUSIVE_NO_DANGLING
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user