
----- Original Message ----- From: "vicente.botet" <vicente.botet@wanadoo.fr> To: <boost@lists.boost.org> Sent: Sunday, November 07, 2010 8:38 AM Subject: Re: [boost] [mpl] mpl::c_str fails for mpl::push_back
----- Original Message ----- From: "Eric Niebler" <eric@boostpro.com> To: <boost@lists.boost.org> Sent: Sunday, November 07, 2010 2:15 AM Subject: Re: [boost] [mpl] mpl::c_str fails for mpl::push_back
On 11/6/2010 8:51 PM, vicente.botet wrote:
Hi,
the following results in a compile error for msvc-10.0. It works for gcc-3.4, gcc-4.3, gcc-4.5.
typedef mpl::vector_c<char, 'h','e','l','l','o',' ','w','o','r','l','d'> hello;
typedef mpl::push_back<hello, mpl::char_<'!'> >::type hello2;
BOOST_TEST((std::string(mpl::c_str<hello2>::value)== "hello world!")); // line 59
mpl::c_str is for use with mpl::string. Does the problem also occur with mpl::string?
Ah, I've forget to ask: How is it that it works for gcc-3.4, gcc-4.3, gcc-4.5? Where is the value_type defined? Vicente