tnintemann / rpms / boost

Forked from rpms/boost 3 years ago
Clone

Blame SOURCES/boost-1.54.0-bind-static_assert.patch

5dffee
diff -up ./boost/bind/arg.hpp~ ./boost/bind/arg.hpp
5dffee
--- ./boost/bind/arg.hpp~	2007-11-25 10:07:19.000000000 -0800
5dffee
+++ ./boost/bind/arg.hpp	2013-07-18 00:41:41.667412595 -0700
5dffee
@@ -21,6 +21,7 @@
5dffee
 
5dffee
 #include <boost/config.hpp>
5dffee
 #include <boost/is_placeholder.hpp>
5dffee
+#include <boost/static_assert.hpp>
5dffee
 
5dffee
 namespace boost
5dffee
 {
5dffee
@@ -33,8 +34,7 @@ template< int I > struct arg
5dffee
 
5dffee
     template< class T > arg( T const & /* t */ )
5dffee
     {
5dffee
-        // static assert I == is_placeholder<T>::value
5dffee
-        typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ];
5dffee
+	BOOST_STATIC_ASSERT(I == is_placeholder<T>::value);
5dffee
     }
5dffee
 };
5dffee