diff -up ./boost/bind/arg.hpp~ ./boost/bind/arg.hpp
old
|
new
|
|
21 | 21 | |
22 | 22 | #include <boost/config.hpp> |
23 | 23 | #include <boost/is_placeholder.hpp> |
| 24 | #include <boost/static_assert.hpp> |
24 | 25 | |
25 | 26 | namespace boost |
26 | 27 | { |
… |
… |
template< int I > struct arg
|
33 | 34 | |
34 | 35 | template< class T > arg( T const & /* t */ ) |
35 | 36 | { |
36 | | // static assert I == is_placeholder<T>::value |
37 | | typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ]; |
| 37 | BOOST_STATIC_ASSERT(I == is_placeholder<T>::value); |
38 | 38 | } |
39 | 39 | }; |
40 | 40 | |