summaryrefslogtreecommitdiff
path: root/boost/fusion/view/single_view/detail/next_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/view/single_view/detail/next_impl.hpp')
-rw-r--r--boost/fusion/view/single_view/detail/next_impl.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/boost/fusion/view/single_view/detail/next_impl.hpp b/boost/fusion/view/single_view/detail/next_impl.hpp
index 41c658f322..55a4ff11b4 100644
--- a/boost/fusion/view/single_view/detail/next_impl.hpp
+++ b/boost/fusion/view/single_view/detail/next_impl.hpp
@@ -39,7 +39,10 @@ namespace boost { namespace fusion
static type
call(Iterator const& i)
{
- BOOST_STATIC_ASSERT((type::position::value < 2));
+ // Workaround for ICE on GCC 4.0.0.
+ // see https://svn.boost.org/trac/boost/ticket/5808
+ typedef typename type::position position;
+ BOOST_STATIC_ASSERT((position::value < 2));
return type(i.view);
}
};