]> git.pld-linux.org Git - packages/boost.git/blob - boost-1.54.0-bind-static_assert.patch
- release 3 (by relup.sh)
[packages/boost.git] / boost-1.54.0-bind-static_assert.patch
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  
This page took 0.372765 seconds and 3 git commands to generate.