const-correctness tweaks

[SVN r73683]
This commit is contained in:
Eric Niebler
2011-08-11 23:58:03 +00:00
parent 5d07df005b
commit f0fa80ca1a
3 changed files with 41 additions and 19 deletions

View File

@ -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 @@ namespace boost { namespace fusion
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 =

View File

@ -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 @@ namespace boost { namespace fusion
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

View File

@ -72,8 +72,10 @@ namespace boost { namespace fusion { namespace detail
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 @@ namespace boost { namespace fusion { namespace detail
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 @@ namespace boost { namespace fusion { namespace detail
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 @@ namespace boost { namespace fusion { namespace detail
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 @@ namespace boost { namespace fusion { namespace detail
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 @@ namespace boost { namespace fusion { namespace detail
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 @@ namespace boost { namespace fusion { namespace detail
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 @@ namespace boost { namespace fusion { namespace detail
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,