From 78a8321eab54b154c8dfa65805e4eedd46e392ef Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Sat, 27 Oct 2007 22:18:13 +0000 Subject: [PATCH] fixing missing traversal category on binary transform view, by reusing zip_view algorithm [SVN r40516] --- .../fusion/view/{zip_view => }/detail/strictest_traversal.hpp | 0 include/boost/fusion/view/transform_view/transform_view.hpp | 4 ++++ include/boost/fusion/view/zip_view/zip_view.hpp | 2 +- include/boost/fusion/view/zip_view/zip_view_iterator_fwd.hpp | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) rename include/boost/fusion/view/{zip_view => }/detail/strictest_traversal.hpp (100%) diff --git a/include/boost/fusion/view/zip_view/detail/strictest_traversal.hpp b/include/boost/fusion/view/detail/strictest_traversal.hpp similarity index 100% rename from include/boost/fusion/view/zip_view/detail/strictest_traversal.hpp rename to include/boost/fusion/view/detail/strictest_traversal.hpp diff --git a/include/boost/fusion/view/transform_view/transform_view.hpp b/include/boost/fusion/view/transform_view/transform_view.hpp index 27ddc273..cabd358e 100644 --- a/include/boost/fusion/view/transform_view/transform_view.hpp +++ b/include/boost/fusion/view/transform_view/transform_view.hpp @@ -17,6 +17,8 @@ #include #include #include +#include +#include #include #include #include @@ -42,6 +44,8 @@ namespace boost { namespace fusion typedef typename traits::category_of::type category1; typedef typename traits::category_of::type category2; + typedef typename detail::strictest_traversal< + fusion::vector2 >::type category; typedef typename result_of::begin::type first1_type; typedef typename result_of::begin::type first2_type; typedef typename result_of::end::type last1_type; diff --git a/include/boost/fusion/view/zip_view/zip_view.hpp b/include/boost/fusion/view/zip_view/zip_view.hpp index 5f152eb0..340feafb 100644 --- a/include/boost/fusion/view/zip_view/zip_view.hpp +++ b/include/boost/fusion/view/zip_view/zip_view.hpp @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/fusion/view/zip_view/zip_view_iterator_fwd.hpp b/include/boost/fusion/view/zip_view/zip_view_iterator_fwd.hpp index 6edf4d68..e2b9a7d4 100644 --- a/include/boost/fusion/view/zip_view/zip_view_iterator_fwd.hpp +++ b/include/boost/fusion/view/zip_view/zip_view_iterator_fwd.hpp @@ -8,7 +8,7 @@ #if !defined(FUSION_ZIP_VIEW_ITERATOR_FWD) #define FUSION_ZIP_VIEW_ITERATOR_FWD -#include +#include namespace boost { namespace fusion {