mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-20 07:42:11 +02:00
Apply 7fdb320
change into C++98 interface.
This commit is contained in:
@ -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)))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -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 : : : : ]
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user