summaryrefslogtreecommitdiff
path: root/boost/fusion/container/generation/detail/pp_map_tie.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/container/generation/detail/pp_map_tie.hpp')
-rw-r--r--boost/fusion/container/generation/detail/pp_map_tie.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/boost/fusion/container/generation/detail/pp_map_tie.hpp b/boost/fusion/container/generation/detail/pp_map_tie.hpp
index fc8d8ce60c..1a53c9193c 100644
--- a/boost/fusion/container/generation/detail/pp_map_tie.hpp
+++ b/boost/fusion/container/generation/detail/pp_map_tie.hpp
@@ -62,7 +62,8 @@ namespace boost { namespace fusion
};
}
- BOOST_FUSION_GPU_ENABLED inline map<>
+ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
+ inline map<>
map_tie()
{
return map<>();
@@ -73,7 +74,7 @@ namespace boost { namespace fusion
BOOST_PP_CAT(K, n) \
, typename add_reference<BOOST_PP_CAT(D, n)>::type>
-#define BOOST_FUSION_PAIR_TIE(z, n, data) \
+#define BOOST_FUSION_PAIR_TIE(z, n, _) \
fusion::pair_tie<BOOST_PP_CAT(K, n)>(BOOST_PP_CAT(_, n)) \
#define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_map_tie.hpp>
@@ -119,12 +120,12 @@ namespace boost { namespace fusion
BOOST_PP_ENUM_PARAMS(N, typename K)
, BOOST_PP_ENUM_PARAMS(N, typename D)
>
- BOOST_FUSION_GPU_ENABLED
+ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline map<BOOST_PP_ENUM(N, BOOST_FUSION_TIED_PAIR, _)>
- map_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, D, & _))
+ map_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, D, & arg))
{
return map<BOOST_PP_ENUM(N, BOOST_FUSION_TIED_PAIR, _)>(
- BOOST_PP_ENUM(N, BOOST_FUSION_PAIR_TIE, _));
+ BOOST_PP_ENUM(N, BOOST_FUSION_PAIR_TIE, arg));
}
#undef N