From 5a2abc4d58bb1c6f6dc10ca3baa623476c502c3c Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Mon, 3 Aug 2009 00:24:46 +0000 Subject: [PATCH] more generic c_str implementation from Mathis Gaunard [SVN r55377] --- include/boost/mpl/string.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/mpl/string.hpp b/include/boost/mpl/string.hpp index 22c71cb..6a9481a 100644 --- a/include/boost/mpl/string.hpp +++ b/include/boost/mpl/string.hpp @@ -44,7 +44,6 @@ #include #include #include -#include #include // for bidirectional_iterator_tag #include @@ -499,6 +498,7 @@ namespace boost { namespace mpl , back_ = BOOST_PP_CAT(C, BOOST_PP_DEC(BOOST_MPL_STRING_MAX_PARAMS)) }; + typedef char value_type; typedef string type; typedef string_tag tag; }; @@ -541,11 +541,11 @@ namespace boost { namespace mpl #undef M0 typedef c_str type; - static char const value[]; + static typename Sequence::value_type const value[BOOST_MPL_LIMIT_STRING_SIZE+1]; }; template - char const c_str::value[] = + typename Sequence::value_type const c_str::value[BOOST_MPL_LIMIT_STRING_SIZE+1] = { #define M0(z, n, data) \ mpl::aux_::deref_unless::type::value,