diff -wbBdu -Nrp -U 7 boost/mpl/string.hpp new/mpl/string.hpp
old
|
new
|
namespace boost { namespace mpl
|
585 | 585 | typedef \ |
586 | 586 | typename mpl::aux_::next_unless<BOOST_PP_CAT(i, n), iend>::type \ |
587 | 587 | BOOST_PP_CAT(i, BOOST_PP_INC(n)); |
588 | 588 | BOOST_PP_REPEAT(BOOST_MPL_LIMIT_STRING_SIZE, M0, ~) |
589 | 589 | #undef M0 |
590 | 590 | |
591 | 591 | typedef c_str type; |
| 592 | #if defined(BOOST_NO_CXX11_CONSTEXPR) |
592 | 593 | 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 |
593 | 604 | }; |
594 | 605 | |
| 606 | #if defined(BOOST_NO_CXX11_CONSTEXPR) |
595 | 607 | template<typename Sequence> |
596 | 608 | typename Sequence::value_type const c_str<Sequence>::value[BOOST_MPL_LIMIT_STRING_SIZE+1] = |
597 | 609 | { |
598 | 610 | #define M0(z, n, data) \ |
599 | 611 | mpl::aux_::deref_unless<BOOST_PP_CAT(i, n), iend>::type::value, |
600 | 612 | BOOST_PP_REPEAT(BOOST_MPL_LIMIT_STRING_SIZE, M0, ~) |
601 | 613 | #undef M0 |
602 | 614 | '\0' |
603 | 615 | }; |
| 616 | #endif |
604 | 617 | |
605 | 618 | }} // namespace boost |
606 | 619 | |
607 | 620 | #endif // BOOST_MPL_STRING_HPP_INCLUDED |