Boost logo

Boost :

Subject: Re: [boost] [mpl] mpl::c_str fails for mpl::push_back
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-11-07 03:00:42


----- Original Message -----
From: "vicente.botet" <vicente.botet_at_[hidden]>
To: <boost_at_[hidden]>
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_at_[hidden]>
> To: <boost_at_[hidden]>
> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk