From 66681de1ed1ac77f3bdf699cc9bf07ba0e296141 Mon Sep 17 00:00:00 2001 From: vahtis Date: Wed, 29 Jan 2020 01:28:18 +0200 Subject: [PATCH] Added fix for Sun Studio compilations. (#45) * Added fix for Sun Studio compilations. * Update config.hpp --- include/boost/mp11/detail/config.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/mp11/detail/config.hpp b/include/boost/mp11/detail/config.hpp index 248dce0..e00fd63 100644 --- a/include/boost/mp11/detail/config.hpp +++ b/include/boost/mp11/detail/config.hpp @@ -132,6 +132,8 @@ #elif BOOST_MP11_CLANG // -pedantic warns about [[deprecated]] when in C++11 mode # define BOOST_MP11_DEPRECATED(msg) __attribute__((deprecated(msg))) +#elif defined(__SUNPRO_CC) +# define BOOST_MP11_DEPRECATED(msg) #else # define BOOST_MP11_DEPRECATED(msg) [[deprecated(msg)]] #endif