mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-20 07:42:11 +02:00
Replace type_traits::ice_and with well documented mpl::and_.
This commit is contained in:
@ -16,7 +16,7 @@
|
|||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
#include <boost/utility/enable_if.hpp>
|
#include <boost/utility/enable_if.hpp>
|
||||||
#include <boost/type_traits/ice.hpp>
|
#include <boost/mpl/and.hpp>
|
||||||
|
|
||||||
#if defined (BOOST_MSVC)
|
#if defined (BOOST_MSVC)
|
||||||
# pragma warning(push)
|
# pragma warning(push)
|
||||||
@ -62,15 +62,10 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
template <typename Seq1, typename Seq2>
|
template <typename Seq1, typename Seq2>
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_FUSION_GPU_ENABLED
|
||||||
inline
|
inline typename enable_if<mpl::and_<
|
||||||
typename
|
traits::is_sequence<Seq1>,
|
||||||
enable_if_c<
|
traits::is_sequence<Seq2>
|
||||||
type_traits::ice_and<
|
> >::type
|
||||||
traits::is_sequence<Seq1>::value
|
|
||||||
, traits::is_sequence<Seq2>::value
|
|
||||||
>::value,
|
|
||||||
void
|
|
||||||
>::type
|
|
||||||
copy(Seq1 const& src, Seq2& dest)
|
copy(Seq1 const& src, Seq2& dest)
|
||||||
{
|
{
|
||||||
BOOST_STATIC_ASSERT(
|
BOOST_STATIC_ASSERT(
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
#include <boost/utility/enable_if.hpp>
|
#include <boost/utility/enable_if.hpp>
|
||||||
#include <boost/type_traits/ice.hpp>
|
#include <boost/mpl/and_.hpp>
|
||||||
|
|
||||||
#if defined (BOOST_MSVC)
|
#if defined (BOOST_MSVC)
|
||||||
# pragma warning(push)
|
# pragma warning(push)
|
||||||
@ -62,15 +62,10 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
template <typename Seq1, typename Seq2>
|
template <typename Seq1, typename Seq2>
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_FUSION_GPU_ENABLED
|
||||||
inline
|
inline typename enable_if<mpl::and_<
|
||||||
typename
|
traits::is_sequence<Seq1>,
|
||||||
enable_if_c<
|
traits::is_sequence<Seq2>
|
||||||
type_traits::ice_and<
|
> >::type
|
||||||
traits::is_sequence<Seq1>::value
|
|
||||||
, traits::is_sequence<Seq2>::value
|
|
||||||
>::value,
|
|
||||||
void
|
|
||||||
>::type
|
|
||||||
move(Seq1&& src, Seq2& dest)
|
move(Seq1&& src, Seq2& dest)
|
||||||
{
|
{
|
||||||
BOOST_STATIC_ASSERT(
|
BOOST_STATIC_ASSERT(
|
||||||
|
Reference in New Issue
Block a user