Ticket #8844: boost-1.54.0-bind-static_assert.patch

File boost-1.54.0-bind-static_assert.patch, 633 bytes (added by pmachata@…, 9 years ago)

A fix

  • ./boost/bind/arg.hpp

    diff -up ./boost/bind/arg.hpp~ ./boost/bind/arg.hpp
    old new  
    2121
    2222#include <boost/config.hpp>
    2323#include <boost/is_placeholder.hpp>
     24#include <boost/static_assert.hpp>
    2425
    2526namespace boost
    2627{
    template< int I > struct arg  
    3334
    3435    template< class T > arg( T const & /* t */ )
    3536    {
    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);
    3838    }
    3939};
    4040