Apply 7fdb320 change into C++98 interface.

This commit is contained in:
Kohei Takahashi
2015-08-30 17:13:36 +09:00
parent efd595fd10
commit c30fabf98f
3 changed files with 9 additions and 3 deletions

View File

@ -101,7 +101,9 @@ namespace boost { namespace fusion {
template<typename Sequence> template<typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_FUSION_GPU_ENABLED
deque(Sequence const& seq, typename disable_if<is_convertible<Sequence, T0> >::type* /*dummy*/ = 0) deque(Sequence const& seq
, typename disable_if<is_convertible<Sequence, T0> >::type* /*dummy*/ = 0
, typename enable_if<traits::is_sequence<Sequence> >::type* /*dummy*/ = 0)
: base(base::from_iterator(fusion::begin(seq))) : base(base::from_iterator(fusion::begin(seq)))
{} {}

View File

@ -92,7 +92,7 @@ project
[ run sequence/deque_copy.cpp : : : : ] [ run sequence/deque_copy.cpp : : : : ]
[ run sequence/deque_iterator.cpp : : : : ] [ run sequence/deque_iterator.cpp : : : : ]
[ run sequence/deque_hash.cpp : : : : ] [ run sequence/deque_hash.cpp : : : : ]
[ run sequence/deque_is_constructible.cpp : : : : ] [ compile sequence/deque_is_constructible.cpp : : : : ]
[ run sequence/deque_make.cpp : : : : ] [ run sequence/deque_make.cpp : : : : ]
[ run sequence/deque_misc.cpp : : : : ] [ run sequence/deque_misc.cpp : : : : ]
[ run sequence/deque_move.cpp : : : : ] [ run sequence/deque_move.cpp : : : : ]

View File

@ -5,6 +5,9 @@
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_HDR_TYPE_TRAITS
#include <type_traits> #include <type_traits>
#include <boost/fusion/include/deque.hpp> #include <boost/fusion/include/deque.hpp>
@ -14,4 +17,5 @@ struct Dummy { };
// Make sure deque's constructor is SFINAE-friendly. // Make sure deque's constructor is SFINAE-friendly.
static_assert(!std::is_constructible<boost::fusion::deque<int>, Dummy const&>::value, ""); static_assert(!std::is_constructible<boost::fusion::deque<int>, Dummy const&>::value, "");
int main() { } #endif