mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-01 05:44:37 +02:00
Fix "-Wc++11-extensions" warning on Clang in C++03 mode
This commit is contained in:
@@ -47,7 +47,10 @@ struct print
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
|
# pragma clang diagnostic push
|
||||||
|
# pragma clang diagnostic ignored "-Wc++11-extensions"
|
||||||
const int m_x = 1 / (sizeof(T) - sizeof(T));
|
const int m_x = 1 / (sizeof(T) - sizeof(T));
|
||||||
|
# pragma clang diagnostic pop
|
||||||
#elif defined(BOOST_MSVC)
|
#elif defined(BOOST_MSVC)
|
||||||
enum { n = sizeof(T) + -1 };
|
enum { n = sizeof(T) + -1 };
|
||||||
#elif defined(__MWERKS__)
|
#elif defined(__MWERKS__)
|
||||||
|
Reference in New Issue
Block a user