boostorg / mpl

Boost.org mpl module
http://boost.org/libs/mpl
Boost Software License 1.0
49 stars 78 forks source link

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

Closed morinmorin closed 8 years ago

morinmorin commented 8 years ago

Including boost/mpl/print.hpp on Clang in C++03 mode always produces a warning (i.e. even without using boost::mpl::print<T>).

We can remove the warning by adding

#pragma clang diagnostic ignored "-Wc++11-extensions"

Note that -Wc++11-extensions is not supported in Clang older than 3.0, but this is not an issue since the current boost::mpl::print implementation requires Clang 3.0 or newer versions and results in errors in Clang older than 3.0.

This issue was reported by Richard Hadsell on Boost developer ML.