]>
Commit | Line | Data |
---|---|---|
647f39b2 AM |
1 | diff -up ./boost/bind/arg.hpp~ ./boost/bind/arg.hpp |
2 | --- ./boost/bind/arg.hpp~ 2007-11-25 10:07:19.000000000 -0800 | |
3 | +++ ./boost/bind/arg.hpp 2013-07-18 00:41:41.667412595 -0700 | |
4 | @@ -21,6 +21,7 @@ | |
5 | ||
6 | #include <boost/config.hpp> | |
7 | #include <boost/is_placeholder.hpp> | |
8 | +#include <boost/static_assert.hpp> | |
9 | ||
10 | namespace boost | |
11 | { | |
12 | @@ -33,8 +34,7 @@ template< int I > struct arg | |
13 | ||
14 | template< class T > arg( T const & /* t */ ) | |
15 | { | |
16 | - // static assert I == is_placeholder<T>::value | |
17 | - typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ]; | |
18 | + BOOST_STATIC_ASSERT(I == is_placeholder<T>::value); | |
19 | } | |
20 | }; | |
21 |