Boost logo

Boost :

Subject: Re: [boost] [fusion] view gcc 4.6
From: Karsten Ahnert (karsten.ahnert_at_[hidden])
Date: 2011-11-20 12:55:16


On 11/20/2011 11:59 AM, Joel de Guzman wrote:
> On 11/20/2011 10:52 AM, Michel Morin wrote:
>> Nathan Ridge wrote:
>>>>> Hi,
>>>>>
>>>>> the following code does not compile with gcc 4.6.1:
>>>>>
>>>>> #include <boost/fusion/view.hpp>
>>>>>
>>>>> int main( int argc , char ** argv )
>>>>> {
>>>>> return 0;
>>>>> }
>>>>>
>>>>> It produces errors like this:
>>>>
>>>> [...]
>>>>>
>>>>> Any Ideas? I think the code should compile sincde fusion/view.hpp is a
>>>>> forwarding for the views...
>>
>> Simply changing LONG_MAX to INT_MAX in line 30 of
>> boost/fusion/view/nview/detail/nview_impl.hpp
>> fixes the problem.
>>
>>
>>>> Compiles fine with VC10 and g++4.5.2. I have no idea. Unfortunately,
>>>> I don't have access to 4.6.1 right now, but I'll see what I can do.
>>>
>>> I have 4.6.1 and it compiles fine with that too.
>>
>> I guess that this problem only appears in the system with
>> sizeof(int) != sizeof(long).
>
> Thank you, all. Committed the fix.
>
> Regards,

Everything works fine now. Thanks.


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