diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:38:45 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:39:52 +0900 |
commit | 5cde13f21d36c7224b0e13d11c4b49379ae5210d (patch) | |
tree | e8269ac85a4b0f7d416e2565fa4f451b5cb41351 /boost/fusion/container/deque/detail/cpp03/deque.hpp | |
parent | d9ec475d945d3035377a0d89ed42e382d8988891 (diff) | |
download | boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.gz boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.bz2 boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.zip |
Imported Upstream version 1.61.0
Change-Id: I96a1f878d1e6164f01e9aadd5147f38fca448d90
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/fusion/container/deque/detail/cpp03/deque.hpp')
-rw-r--r-- | boost/fusion/container/deque/detail/cpp03/deque.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/boost/fusion/container/deque/detail/cpp03/deque.hpp b/boost/fusion/container/deque/detail/cpp03/deque.hpp index a65fa4acbd..8cffe6b960 100644 --- a/boost/fusion/container/deque/detail/cpp03/deque.hpp +++ b/boost/fusion/container/deque/detail/cpp03/deque.hpp @@ -35,6 +35,7 @@ #include <boost/mpl/bool.hpp> #include <boost/fusion/support/void.hpp> +#include <boost/fusion/support/detail/enabler.hpp> #include <boost/utility/enable_if.hpp> #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES) @@ -102,8 +103,8 @@ namespace boost { namespace fusion { template<typename Sequence> BOOST_FUSION_GPU_ENABLED deque(Sequence const& seq - , typename disable_if<is_convertible<Sequence, T0> >::type* /*dummy*/ = 0 - , typename enable_if<traits::is_sequence<Sequence> >::type* /*dummy*/ = 0) + , typename disable_if<is_convertible<Sequence, T0>, detail::enabler_>::type = detail::enabler + , typename enable_if<traits::is_sequence<Sequence>, detail::enabler_>::type = detail::enabler) : base(base::from_iterator(fusion::begin(seq))) {} @@ -133,7 +134,7 @@ FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) template <typename T0_> BOOST_FUSION_GPU_ENABLED explicit deque(T0_&& t0 - , typename enable_if<is_convertible<T0_, T0> >::type* /*dummy*/ = 0 + , typename enable_if<is_convertible<T0_, T0>, detail::enabler_>::type = detail::enabler ) : base(BOOST_FUSION_FWD_ELEM(T0_, t0), detail::nil_keyed_element()) {} @@ -146,7 +147,8 @@ FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) deque(deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)>&& seq , typename disable_if< is_convertible<deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)>, T0> - >::type* /*dummy*/ = 0) + , detail::enabler_ + >::type = detail::enabler) : base(std::forward<deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)>>(seq)) {} template <typename T> @@ -180,7 +182,7 @@ FUSION_HASH endif typename enable_if< mpl::and_< traits::is_sequence<Sequence> - , result_of::empty<Sequence> > >::type* /*dummy*/ = 0) BOOST_NOEXCEPT + , result_of::empty<Sequence> >, detail::enabler_>::type = detail::enabler) BOOST_NOEXCEPT {} BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED |