summaryrefslogtreecommitdiff
path: root/boost/fusion/view/single_view/single_view_iterator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/view/single_view/single_view_iterator.hpp')
-rw-r--r--boost/fusion/view/single_view/single_view_iterator.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/boost/fusion/view/single_view/single_view_iterator.hpp b/boost/fusion/view/single_view/single_view_iterator.hpp
index 128c1cae66..0f3e2744b5 100644
--- a/boost/fusion/view/single_view/single_view_iterator.hpp
+++ b/boost/fusion/view/single_view/single_view_iterator.hpp
@@ -40,7 +40,8 @@ namespace boost { namespace fusion
typedef Pos position;
typedef SingleView single_view_type;
- BOOST_FUSION_GPU_ENABLED explicit single_view_iterator(single_view_type& in_view)
+ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
+ explicit single_view_iterator(single_view_type& in_view)
: view(in_view) {}
SingleView& view;
@@ -50,6 +51,15 @@ namespace boost { namespace fusion
};
}}
+#ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408
+namespace std
+{
+ template <typename SingleView, typename Pos>
+ struct iterator_traits< ::boost::fusion::single_view_iterator<SingleView, Pos> >
+ { };
+}
+#endif
+
#if defined (BOOST_MSVC)
# pragma warning(pop)
#endif