From 21a06a93aa62f30bf2962d2fcf5900f6fa1e93bd Mon Sep 17 00:00:00 2001 From: "code@jendruk.com" Date: Fri, 31 May 2019 10:46:04 +0200 Subject: [PATCH] Replace decay with remove_reference / remove_const --- include/boost/range/detail/any_iterator_interface.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/boost/range/detail/any_iterator_interface.hpp b/include/boost/range/detail/any_iterator_interface.hpp index 6135474..d3b21ea 100644 --- a/include/boost/range/detail/any_iterator_interface.hpp +++ b/include/boost/range/detail/any_iterator_interface.hpp @@ -13,9 +13,9 @@ #include #include #include -#include #include #include +#include #include namespace boost @@ -37,11 +37,13 @@ namespace boost template struct reference_as_value_type_generator { - typedef typename decay::type decayed_type; + typedef typename remove_reference< + typename remove_const::type + >::type value_type; typedef typename mpl::if_< - typename is_convertible::type, - decayed_type, + typename is_convertible::type, + value_type, T >::type type; };