Skip to content

Commit

Permalink
Use __attribute__ syntax instead of C++ attribute syntax for C++03 co…
Browse files Browse the repository at this point in the history
…mpatibility
  • Loading branch information
igaztanaga committed Sep 8, 2024
1 parent 7d5abb2 commit ec5e251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/intrusive/detail/workaround.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec5e251

Please sign in to comment.