Fix "-Wc++11-extensions" warning on Clang in C++03 mode

This commit is contained in:
morinmorin
2016-07-02 14:27:29 +09:00
parent bc8b860037
commit 869438d60b

View File

@ -47,7 +47,10 @@ struct print
#endif
{
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc++11-extensions"
const int m_x = 1 / (sizeof(T) - sizeof(T));
# pragma clang diagnostic pop
#elif defined(BOOST_MSVC)
enum { n = sizeof(T) + -1 };
#elif defined(__MWERKS__)