forked from boostorg/bind
Switch to BOOST_STATIC_ASSERT in arg.hpp per the patch in #8844.
This commit is contained in:
@@ -21,11 +21,7 @@
|
|||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/is_placeholder.hpp>
|
#include <boost/is_placeholder.hpp>
|
||||||
|
#include <boost/static_assert.hpp>
|
||||||
#if BOOST_GCC >= 40700
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
@@ -38,8 +34,7 @@ template< int I > struct arg
|
|||||||
|
|
||||||
template< class T > arg( T const & /* t */ )
|
template< class T > arg( T const & /* t */ )
|
||||||
{
|
{
|
||||||
// static assert I == is_placeholder<T>::value
|
BOOST_STATIC_ASSERT( I == is_placeholder<T>::value );
|
||||||
typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -64,9 +59,4 @@ template< int I > struct is_placeholder< arg<I> (*) () >
|
|||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#if BOOST_GCC >= 40700
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif // #ifndef BOOST_BIND_ARG_HPP_INCLUDED
|
#endif // #ifndef BOOST_BIND_ARG_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user