From ec5e251f547aa850e0e41a9ed204a08581931a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 8 Sep 2024 17:04:00 +0200 Subject: [PATCH] Use __attribute__ syntax instead of C++ attribute syntax for C++03 compatibility --- include/boost/intrusive/detail/workaround.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/intrusive/detail/workaround.hpp b/include/boost/intrusive/detail/workaround.hpp index 3c808308..f797b10f 100644 --- a/include/boost/intrusive/detail/workaround.hpp +++ b/include/boost/intrusive/detail/workaround.hpp @@ -116,7 +116,7 @@ template 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