From 414b87dbdbd3c4ffbe8a83c5542eb2b392d06adb Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 7 Jun 2007 20:43:50 +0000 Subject: [PATCH] fixing bug in internal use of fusion::result_of::distance [SVN r37934] --- include/boost/fusion/algorithm/iteration/detail/fold.hpp | 4 ++-- include/boost/fusion/algorithm/iteration/detail/for_each.hpp | 2 +- include/boost/fusion/algorithm/query/detail/all.hpp | 2 +- include/boost/fusion/algorithm/query/detail/any.hpp | 2 +- include/boost/fusion/algorithm/query/detail/count_if.hpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/boost/fusion/algorithm/iteration/detail/fold.hpp b/include/boost/fusion/algorithm/iteration/detail/fold.hpp index af7e21f4..37f351cb 100644 --- a/include/boost/fusion/algorithm/iteration/detail/fold.hpp +++ b/include/boost/fusion/algorithm/iteration/detail/fold.hpp @@ -214,7 +214,7 @@ namespace detail typedef typename result_of::begin::type begin; typedef typename result_of::end::type end; typedef typename result_of_unrolled_fold< - begin, State, F, result_of::distance::value>::type type; + begin, State, F, result_of::distance::type::value>::type type; }; template @@ -251,7 +251,7 @@ namespace detail { typedef typename result_of::begin::type begin; typedef typename result_of::end::type end; - return unrolled_fold::value>::call( + return unrolled_fold::type::value>::call( fusion::begin(seq) , state , f); diff --git a/include/boost/fusion/algorithm/iteration/detail/for_each.hpp b/include/boost/fusion/algorithm/iteration/detail/for_each.hpp index a67978c6..a23517c8 100644 --- a/include/boost/fusion/algorithm/iteration/detail/for_each.hpp +++ b/include/boost/fusion/algorithm/iteration/detail/for_each.hpp @@ -121,7 +121,7 @@ namespace detail { typedef typename result_of::begin::type begin; typedef typename result_of::end::type end; - for_each_unrolled::value>::call(fusion::begin(seq), f); + for_each_unrolled::type::value>::call(fusion::begin(seq), f); } }}} diff --git a/include/boost/fusion/algorithm/query/detail/all.hpp b/include/boost/fusion/algorithm/query/detail/all.hpp index 9f4828ce..979cfb11 100644 --- a/include/boost/fusion/algorithm/query/detail/all.hpp +++ b/include/boost/fusion/algorithm/query/detail/all.hpp @@ -118,7 +118,7 @@ namespace boost { namespace fusion { namespace detail { typedef typename result_of::begin::type begin; typedef typename result_of::end::type end; - return detail::unrolled_all::value>::call( + return detail::unrolled_all::type::value>::call( fusion::begin(seq), f); } }}} diff --git a/include/boost/fusion/algorithm/query/detail/any.hpp b/include/boost/fusion/algorithm/query/detail/any.hpp index 8cb2ea21..31bbaa58 100644 --- a/include/boost/fusion/algorithm/query/detail/any.hpp +++ b/include/boost/fusion/algorithm/query/detail/any.hpp @@ -121,7 +121,7 @@ namespace detail { typedef typename result_of::begin::type begin; typedef typename result_of::end::type end; - return detail::unrolled_any::value>::call( + return detail::unrolled_any::type::value>::call( fusion::begin(seq), f); } }}} diff --git a/include/boost/fusion/algorithm/query/detail/count_if.hpp b/include/boost/fusion/algorithm/query/detail/count_if.hpp index d1f6ef7e..d270b591 100644 --- a/include/boost/fusion/algorithm/query/detail/count_if.hpp +++ b/include/boost/fusion/algorithm/query/detail/count_if.hpp @@ -161,7 +161,7 @@ namespace detail { typedef typename result_of::begin::type begin; typedef typename result_of::end::type end; - return detail::unrolled_count_if::value>:: + return detail::unrolled_count_if::type::value>:: call(fusion::begin(seq), f); } }}}