Boost logo

Boost :

Subject: [boost] [fusion] view gcc 4.6
From: Karsten Ahnert (karsten.ahnert_at_[hidden])
Date: 2011-11-19 19:51:24


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:

$> g++-4.6 -I$BOOST_ROOT test_fusion_view.cpp

...
...
In file included from
/home/karsten/boost/boost_1_47_0/boost/preprocessor/iteration/detail/iter/forward1.hpp:92:0,
                 from
/home/karsten/boost/boost_1_47_0/boost/fusion/view/nview/detail/nview_impl.hpp:40,
                 from
/home/karsten/boost/boost_1_47_0/boost/fusion/view/nview/nview.hpp:105,
                 from
/home/karsten/boost/boost_1_47_0/boost/fusion/view/nview.hpp:12,
                 from
/home/karsten/boost/boost_1_47_0/boost/fusion/view.hpp:13,
                 from test_fusion_view.cpp:1:
/home/karsten/boost/boost_1_47_0/boost/fusion/view/nview/detail/nview_impl.hpp:55:57:
warning: overflow in implicit constant conversion [-Woverflow]
/home/karsten/boost/boost_1_47_0/boost/fusion/view/nview/detail/nview_impl.hpp:55:57:
error: overflow in constant expression [-fpermissive]
/home/karsten/boost/boost_1_47_0/boost/fusion/view/nview/detail/nview_impl.hpp:55:57:
note: in template argument for type ‘int’

Any Ideas? I think the code should compile sincde fusion/view.hpp is a
forwarding for the views...


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