From 64780152fa4649078ded4c82e13df7bedeff7776 Mon Sep 17 00:00:00 2001 From: akumta Date: Sun, 11 Sep 2016 08:17:43 -0700 Subject: [PATCH] For Oracle Developer Studio __has_attribute to be used instead of __has_cpp_attribute, not remove the functionality. --- include/boost/config/suffix.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/config/suffix.hpp b/include/boost/config/suffix.hpp index 3da09d9a..eeaec2bf 100644 --- a/include/boost/config/suffix.hpp +++ b/include/boost/config/suffix.hpp @@ -624,7 +624,11 @@ namespace std{ using ::type_info; } # define BOOST_NORETURN __declspec(noreturn) # elif defined(__GNUC__) # define BOOST_NORETURN __attribute__ ((__noreturn__)) -# elif defined(__has_cpp_attribute) && !defined(__SUNPRO_CC) +# elif defined(__has_attribute) && defined(__SUNPRO_CC) +# if __has_attribute(noreturn) +# define BOOST_NORETURN [[noreturn]] +# endif +# elif defined(__has_cpp_attribute) # if __has_cpp_attribute(noreturn) # define BOOST_NORETURN [[noreturn]] # endif