From bf6f3e02218d3250807538affb86ccd0bffd26f9 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 25 May 2019 03:40:23 +0300 Subject: [PATCH] Clang 3.3 can't parse __attribute__((deprecated)) on aliases --- 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 3b51541..248dce0 100644 --- a/include/boost/mp11/detail/config.hpp +++ b/include/boost/mp11/detail/config.hpp @@ -127,6 +127,8 @@ # define BOOST_MP11_DEPRECATED(msg) #elif BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 50000 ) # define BOOST_MP11_DEPRECATED(msg) __attribute__((deprecated(msg))) +#elif BOOST_MP11_WORKAROUND( BOOST_MP11_CLANG, < 304 ) +# define BOOST_MP11_DEPRECATED(msg) #elif BOOST_MP11_CLANG // -pedantic warns about [[deprecated]] when in C++11 mode # define BOOST_MP11_DEPRECATED(msg) __attribute__((deprecated(msg)))