Ticket #9971: patch.diff

File patch.diff, 1.7 KB (added by ytj000@…, 8 years ago)

Patch

  • mpl/string.hpp

    diff -wbBdu -Nrp -U 7 boost/mpl/string.hpp new/mpl/string.hpp
    old new namespace boost { namespace mpl  
    585585        typedef                                                                                     \
    586586            typename mpl::aux_::next_unless<BOOST_PP_CAT(i, n), iend>::type                         \
    587587        BOOST_PP_CAT(i, BOOST_PP_INC(n));
    588588        BOOST_PP_REPEAT(BOOST_MPL_LIMIT_STRING_SIZE, M0, ~)
    589589        #undef M0
    590590
    591591        typedef c_str type;
     592#if defined(BOOST_NO_CXX11_CONSTEXPR)
    592593        static typename Sequence::value_type const value[BOOST_MPL_LIMIT_STRING_SIZE+1];
     594#else
     595        constexpr static typename Sequence::value_type const value[BOOST_MPL_LIMIT_STRING_SIZE+1] =
     596        {
     597            #define M0(z, n, data)                                                                      \
     598            mpl::aux_::deref_unless<BOOST_PP_CAT(i, n), iend>::type::value,
     599            BOOST_PP_REPEAT(BOOST_MPL_LIMIT_STRING_SIZE, M0, ~)
     600            #undef M0
     601            '\0'
     602        };
     603#endif
    593604    };
    594605
     606#if defined(BOOST_NO_CXX11_CONSTEXPR)
    595607    template<typename Sequence>
    596608    typename Sequence::value_type const c_str<Sequence>::value[BOOST_MPL_LIMIT_STRING_SIZE+1] =
    597609    {
    598610        #define M0(z, n, data)                                                                      \
    599611        mpl::aux_::deref_unless<BOOST_PP_CAT(i, n), iend>::type::value,
    600612        BOOST_PP_REPEAT(BOOST_MPL_LIMIT_STRING_SIZE, M0, ~)
    601613        #undef M0
    602614        '\0'
    603615    };
     616#endif
    604617
    605618}} // namespace boost
    606619
    607620#endif // BOOST_MPL_STRING_HPP_INCLUDED