Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73683 - in trunk/boost/fusion/view/ext_: . detail
From: eric_at_[hidden]
Date: 2011-08-11 19:58:04


Author: eric_niebler
Date: 2011-08-11 19:58:03 EDT (Thu, 11 Aug 2011)
New Revision: 73683
URL: http://svn.boost.org/trac/boost/changeset/73683

Log:
const-correctness tweaks
Text files modified:
   trunk/boost/fusion/view/ext_/detail/next_impl.hpp | 5 +++
   trunk/boost/fusion/view/ext_/segmented_fold_until.hpp | 7 ++++-
   trunk/boost/fusion/view/ext_/segmented_iterator_range.hpp | 48 ++++++++++++++++++++++++++-------------
   3 files changed, 41 insertions(+), 19 deletions(-)

Modified: trunk/boost/fusion/view/ext_/detail/next_impl.hpp
==============================================================================
--- trunk/boost/fusion/view/ext_/detail/next_impl.hpp (original)
+++ trunk/boost/fusion/view/ext_/detail/next_impl.hpp 2011-08-11 19:58:03 EDT (Thu, 11 Aug 2011)
@@ -7,6 +7,7 @@
 #if !defined(BOOST_FUSION_SEGMENTED_ITERATOR_NEXT_IMPL_HPP_INCLUDED)
 #define BOOST_FUSION_SEGMENTED_ITERATOR_NEXT_IMPL_HPP_INCLUDED
 
+#include <boost/type_traits/add_const.hpp>
 #include <boost/type_traits/remove_reference.hpp>
 #include <boost/fusion/sequence/intrinsic/empty.hpp>
 #include <boost/fusion/container/list/cons.hpp>
@@ -111,7 +112,9 @@
             typename Range =
                 typename remove_reference<
                     typename add_const<
- typename result_of::deref<typename Stack::car_type::begin_type>::type
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type,
             typename Result =

Modified: trunk/boost/fusion/view/ext_/segmented_fold_until.hpp
==============================================================================
--- trunk/boost/fusion/view/ext_/segmented_fold_until.hpp (original)
+++ trunk/boost/fusion/view/ext_/segmented_fold_until.hpp 2011-08-11 19:58:03 EDT (Thu, 11 Aug 2011)
@@ -11,6 +11,7 @@
 #include <boost/mpl/eval_if.hpp>
 #include <boost/mpl/identity.hpp>
 #include <boost/utility/result_of.hpp>
+#include <boost/type_traits/add_const.hpp>
 #include <boost/type_traits/remove_reference.hpp>
 
 #include <boost/fusion/support/void.hpp>
@@ -48,8 +49,10 @@
                     Cur,
                     typename result_of::end<
                         typename remove_reference<
- typename result_of::deref<
- typename Context::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Context::car_type::begin_type
+ >::type
>::type
>::type
>::type

Modified: trunk/boost/fusion/view/ext_/segmented_iterator_range.hpp
==============================================================================
--- trunk/boost/fusion/view/ext_/segmented_iterator_range.hpp (original)
+++ trunk/boost/fusion/view/ext_/segmented_iterator_range.hpp 2011-08-11 19:58:03 EDT (Thu, 11 Aug 2011)
@@ -72,8 +72,10 @@
                         typename add_const<
                             typename result_of::segments<
                                 typename remove_reference<
- typename result_of::deref<
- typename Stack::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type
>::type
@@ -93,8 +95,10 @@
                         typename add_const<
                             typename result_of::segments<
                                 typename remove_reference<
- typename result_of::deref<
- typename Stack::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type
>::type
@@ -138,8 +142,10 @@
             result_of::equal_to<
                 typename result_of::end<
                     typename remove_reference<
- typename result_of::deref<
- typename Stack::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type
>::type,
@@ -151,8 +157,10 @@
                 typename Stack::cdr_type::car_type::begin_type,
                 typename result_of::end<
                     typename remove_reference<
- typename result_of::deref<
- typename Stack::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type
>::type
@@ -208,8 +216,10 @@
                         typename add_const<
                             typename result_of::segments<
                                 typename remove_reference<
- typename result_of::deref<
- typename Stack::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type
>::type
@@ -226,8 +236,10 @@
                         typename add_const<
                             typename result_of::segments<
                                 typename remove_reference<
- typename result_of::deref<
- typename Stack::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type
>::type
@@ -272,8 +284,10 @@
             result_of::equal_to<
                 typename result_of::end<
                     typename remove_reference<
- typename result_of::deref<
- typename Stack::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type
>::type,
@@ -284,8 +298,10 @@
             iterator_range<
                 typename result_of::begin<
                     typename remove_reference<
- typename result_of::deref<
- typename Stack::car_type::begin_type
+ typename add_const<
+ typename result_of::deref<
+ typename Stack::car_type::begin_type
+ >::type
>::type
>::type
>::type,


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk