Skip to content

Commit ec5e251

Browse files
committed
Use __attribute__ syntax instead of C++ attribute syntax for C++03 compatibility
1 parent 7d5abb2 commit ec5e251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/intrusive/detail/workaround.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ template<unsigned> struct static_assert_test {};
116116
//GCC has some false positives with some functions returning references.
117117
//This silences this warning in selected functions
118118
#if defined(BOOST_GCC) && (BOOST_GCC >= 140000)
119-
# define BOOST_INTRUSIVE_NO_DANGLING [[gnu::no_dangling]]
119+
# define BOOST_INTRUSIVE_NO_DANGLING __attribute__((no_dangling))
120120
#else
121121
# define BOOST_INTRUSIVE_NO_DANGLING
122122
#endif

0 commit comments

Comments
 (0)