diff --git a/include/boost/bind/arg.hpp b/include/boost/bind/arg.hpp index 2cc072a..c879bb4 100644 --- a/include/boost/bind/arg.hpp +++ b/include/boost/bind/arg.hpp @@ -21,11 +21,7 @@ #include #include - -#if BOOST_GCC >= 40700 -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-local-typedefs" -#endif +#include namespace boost { @@ -38,8 +34,7 @@ template< int I > struct arg template< class T > arg( T const & /* t */ ) { - // static assert I == is_placeholder::value - typedef char T_must_be_placeholder[ I == is_placeholder::value? 1: -1 ]; + BOOST_STATIC_ASSERT( I == is_placeholder::value ); } }; @@ -64,9 +59,4 @@ template< int I > struct is_placeholder< arg (*) () > } // namespace boost -#if BOOST_GCC >= 40700 -#pragma GCC diagnostic pop -#endif - - #endif // #ifndef BOOST_BIND_ARG_HPP_INCLUDED