summaryrefslogtreecommitdiff
path: root/boost/fusion/container/generation/detail/pp_make_deque.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/container/generation/detail/pp_make_deque.hpp')
-rw-r--r--boost/fusion/container/generation/detail/pp_make_deque.hpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/boost/fusion/container/generation/detail/pp_make_deque.hpp b/boost/fusion/container/generation/detail/pp_make_deque.hpp
index 843ae7597a..5635c73c0d 100644
--- a/boost/fusion/container/generation/detail/pp_make_deque.hpp
+++ b/boost/fusion/container/generation/detail/pp_make_deque.hpp
@@ -57,7 +57,8 @@ namespace boost { namespace fusion
};
}
- BOOST_FUSION_GPU_ENABLED inline deque<>
+ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
+ inline deque<>
make_deque()
{
return deque<>();
@@ -66,9 +67,6 @@ namespace boost { namespace fusion
#define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
-#define BOOST_FUSION_AS_FUSION_ELEMENT(z, n, data) \
- typename detail::as_fusion_element<BOOST_PP_CAT(T, n)>::type
-
#define BOOST_PP_FILENAME_1 <boost/fusion/container/generation/detail/pp_make_deque.hpp>
#define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_DEQUE_SIZE)
#include BOOST_PP_ITERATE()
@@ -105,12 +103,12 @@ namespace boost { namespace fusion
}
template <BOOST_PP_ENUM_PARAMS(N, typename T)>
- BOOST_FUSION_GPU_ENABLED
+ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
- make_deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& _))
+ make_deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
{
return deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>(
- BOOST_PP_ENUM_PARAMS(N, _));
+ BOOST_PP_ENUM_PARAMS(N, arg));
}
#undef N