1
0
forked from boostorg/bind

Switch to BOOST_STATIC_ASSERT in arg.hpp per the patch in #8844.

This commit is contained in:
Peter Dimov
2013-12-12 00:12:56 +02:00
parent ea05f23163
commit a6b17d9001

View File

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