diff options
Diffstat (limited to 'boost/fusion/view/nview/nview_iterator.hpp')
-rw-r--r-- | boost/fusion/view/nview/nview_iterator.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/boost/fusion/view/nview/nview_iterator.hpp b/boost/fusion/view/nview/nview_iterator.hpp index c614cbbb92..aeaf4620b8 100644 --- a/boost/fusion/view/nview/nview_iterator.hpp +++ b/boost/fusion/view/nview/nview_iterator.hpp @@ -42,7 +42,8 @@ namespace boost { namespace fusion typedef Sequence sequence_type; typedef mpl_iterator<Pos> first_type; - BOOST_FUSION_GPU_ENABLED explicit nview_iterator(Sequence& in_seq) + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED + explicit nview_iterator(Sequence& in_seq) : seq(in_seq) {} Sequence& seq; @@ -54,6 +55,15 @@ namespace boost { namespace fusion }} +#ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408 +namespace std +{ + template <typename Sequence, typename Pos> + struct iterator_traits< ::boost::fusion::nview_iterator<Sequence, Pos> > + { }; +} +#endif + #endif |