Boost logo

Boost :

Subject: Re: [boost] [fusion] view gcc 4.6
From: Michel Morin (mimomorin_at_[hidden])
Date: 2011-11-19 21:52:05


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).

Regards,
Michel


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