Use __attribute__ syntax instead of C++ attribute syntax for C++03 compatibility

This commit is contained in:
Ion Gaztañaga
2024-09-08 17:04:00 +02:00
parent 7d5abb2d02
commit ec5e251f54

View File

@ -116,7 +116,7 @@ template<unsigned> struct static_assert_test {};
//GCC has some false positives with some functions returning references.
//This silences this warning in selected functions
#if defined(BOOST_GCC) && (BOOST_GCC >= 140000)
# define BOOST_INTRUSIVE_NO_DANGLING [[gnu::no_dangling]]
# define BOOST_INTRUSIVE_NO_DANGLING __attribute__((no_dangling))
#else
# define BOOST_INTRUSIVE_NO_DANGLING
#endif