1
0
forked from boostorg/mp11

Prefer __attribute__((deprecated)) on all g++-compatible compilers (f.ex. Intel)

This commit is contained in:
Peter Dimov
2020-03-08 18:14:01 +02:00
parent c89fd0b7e0
commit c806f70b73

View File

@@ -123,19 +123,14 @@
// BOOST_MP11_DEPRECATED(msg) // BOOST_MP11_DEPRECATED(msg)
#if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1900 ) #if BOOST_MP11_WORKAROUND( BOOST_MP11_CLANG, < 304 )
# define BOOST_MP11_DEPRECATED(msg) # define BOOST_MP11_DEPRECATED(msg)
#elif BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 50000 ) #elif defined(__GNUC__) || defined(__clang__)
# define BOOST_MP11_DEPRECATED(msg) __attribute__((deprecated(msg))) # define BOOST_MP11_DEPRECATED(msg) __attribute__((deprecated(msg)))
#elif BOOST_MP11_WORKAROUND( BOOST_MP11_CLANG, < 304 ) #elif defined(_MSC_VER) && _MSC_VER >= 1900
# 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)))
#elif defined(__SUNPRO_CC)
# define BOOST_MP11_DEPRECATED(msg)
#else
# define BOOST_MP11_DEPRECATED(msg) [[deprecated(msg)]] # define BOOST_MP11_DEPRECATED(msg) [[deprecated(msg)]]
#else
# define BOOST_MP11_DEPRECATED(msg)
#endif #endif
#endif // #ifndef BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED #endif // #ifndef BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED