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,11 +49,13 @@ namespace boost { namespace fusion
Cur,
typename result_of::end<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Context::car_type::begin_type
>::type
>::type
>::type
>::type
>
range_type;

View File

@ -72,6 +72,7 @@ namespace boost { namespace fusion { namespace detail
typename add_const<
typename result_of::segments<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Stack::car_type::begin_type
>::type
@ -79,6 +80,7 @@ namespace boost { namespace fusion { namespace detail
>::type
>::type
>::type
>::type
>::type,
typename Stack::cdr_type::car_type::end_type
>));
@ -93,6 +95,7 @@ namespace boost { namespace fusion { namespace detail
typename add_const<
typename result_of::segments<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Stack::car_type::begin_type
>::type
@ -101,6 +104,7 @@ namespace boost { namespace fusion { namespace detail
>::type
>::type
>::type
>::type
>
rest_type;
@ -138,10 +142,12 @@ namespace boost { namespace fusion { namespace detail
result_of::equal_to<
typename result_of::end<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Stack::car_type::begin_type
>::type
>::type
>::type
>::type,
typename Stack::cdr_type::car_type::end_type
>));
@ -151,11 +157,13 @@ namespace boost { namespace fusion { namespace detail
typename Stack::cdr_type::car_type::begin_type,
typename result_of::end<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Stack::car_type::begin_type
>::type
>::type
>::type
>::type
>
type;
@ -208,6 +216,7 @@ namespace boost { namespace fusion { namespace detail
typename add_const<
typename result_of::segments<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Stack::car_type::begin_type
>::type
@ -215,6 +224,7 @@ namespace boost { namespace fusion { namespace detail
>::type
>::type
>::type
>::type
>::type,
typename Stack::cdr_type::car_type::end_type
>));
@ -226,6 +236,7 @@ namespace boost { namespace fusion { namespace detail
typename add_const<
typename result_of::segments<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Stack::car_type::begin_type
>::type
@ -233,6 +244,7 @@ namespace boost { namespace fusion { namespace detail
>::type
>::type
>::type
>::type
>::type,
typename Stack::cdr_type::car_type::begin_type
>
@ -272,10 +284,12 @@ namespace boost { namespace fusion { namespace detail
result_of::equal_to<
typename result_of::end<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Stack::car_type::begin_type
>::type
>::type
>::type
>::type,
typename Stack::cdr_type::car_type::end_type
>));
@ -284,10 +298,12 @@ namespace boost { namespace fusion { namespace detail
iterator_range<
typename result_of::begin<
typename remove_reference<
typename add_const<
typename result_of::deref<
typename Stack::car_type::begin_type
>::type
>::type
>::type
>::type,
typename Stack::cdr_type::car_type::begin_type
>