tnintemann / rpms / boost

Forked from rpms/boost 3 years ago
Clone

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

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