mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-23 09:07:26 +02:00
const-correctness tweaks
[SVN r73683]
This commit is contained in:
@ -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 =
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
>
|
||||
|
Reference in New Issue
Block a user