Replace type_traits::ice_and with well documented mpl::and_.

This commit is contained in:
Kohei Takahashi
2014-11-08 02:32:06 +09:00
parent 834250a4c8
commit bd5ce92e10
2 changed files with 10 additions and 20 deletions

View File

@ -16,7 +16,7 @@
#include <boost/config.hpp>
#include <boost/static_assert.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/ice.hpp>
#include <boost/mpl/and.hpp>
#if defined (BOOST_MSVC)
# pragma warning(push)
@ -62,15 +62,10 @@ namespace boost { namespace fusion
template <typename Seq1, typename Seq2>
BOOST_FUSION_GPU_ENABLED
inline
typename
enable_if_c<
type_traits::ice_and<
traits::is_sequence<Seq1>::value
, traits::is_sequence<Seq2>::value
>::value,
void
>::type
inline typename enable_if<mpl::and_<
traits::is_sequence<Seq1>,
traits::is_sequence<Seq2>
> >::type
copy(Seq1 const& src, Seq2& dest)
{
BOOST_STATIC_ASSERT(

View File

@ -16,7 +16,7 @@
#include <boost/config.hpp>
#include <boost/static_assert.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/ice.hpp>
#include <boost/mpl/and_.hpp>
#if defined (BOOST_MSVC)
# pragma warning(push)
@ -62,15 +62,10 @@ namespace boost { namespace fusion
template <typename Seq1, typename Seq2>
BOOST_FUSION_GPU_ENABLED
inline
typename
enable_if_c<
type_traits::ice_and<
traits::is_sequence<Seq1>::value
, traits::is_sequence<Seq2>::value
>::value,
void
>::type
inline typename enable_if<mpl::and_<
traits::is_sequence<Seq1>,
traits::is_sequence<Seq2>
> >::type
move(Seq1&& src, Seq2& dest)
{
BOOST_STATIC_ASSERT(