
20 Nov
2011
20 Nov
'11
2:52 a.m.
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