Ticket #8847: boost-1.54.0-concept-unused_typedef.patch

File boost-1.54.0-concept-unused_typedef.patch, 883 bytes (added by pmachata@…, 9 years ago)

A fix

  • ./boost/concept/detail/general.hpp

    diff -up ./boost/concept/detail/general.hpp~ ./boost/concept/detail/general.hpp
    old new  
    66
    77# include <boost/preprocessor/cat.hpp>
    88# include <boost/concept/detail/backward_compatibility.hpp>
     9# include <boost/static_assert.hpp>
    910
    1011# ifdef BOOST_OLD_CONCEPT_SUPPORT
    1112#  include <boost/concept/detail/has_constraints.hpp>
    struct requirement_<void(*)(Model)>  
    6869#  define BOOST_CONCEPT_ASSERT_FN( ModelFnPtr )             \
    6970    typedef ::boost::concepts::detail::instantiate<          \
    7071    &::boost::concepts::requirement_<ModelFnPtr>::failed>    \
    71       BOOST_PP_CAT(boost_concept_check,__LINE__)
     72      BOOST_PP_CAT(boost_concept_check,__LINE__)             \
     73      BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE
    7274
    7375}}
    7476