update boost on linux
This commit is contained in:
@@ -25,7 +25,13 @@ namespace boost { namespace fusion { namespace detail
|
||||
BOOST_FUSION_BARRIER_BEGIN
|
||||
|
||||
template <int size, bool is_assoc>
|
||||
struct as_map;
|
||||
struct as_map
|
||||
{
|
||||
BOOST_STATIC_ASSERT_MSG(
|
||||
size <= FUSION_MAX_MAP_SIZE
|
||||
, "FUSION_MAX_MAP_SIZE limit is too low"
|
||||
);
|
||||
};
|
||||
|
||||
template <bool is_assoc>
|
||||
struct as_map<0, is_assoc>
|
||||
|
||||
@@ -125,11 +125,7 @@ namespace boost { namespace fusion { namespace detail
|
||||
}
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
value_type get_val(mpl::identity<key_type>);
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
pair_type get_val(mpl::int_<index>);
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
value_type get_val(mpl::identity<key_type>) const;
|
||||
mpl::identity<value_type> get_val(mpl::identity<key_type>) const;
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
pair_type get_val(mpl::int_<index>) const;
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2013 Joel de Guzman
|
||||
Copyright (c) 2018 Kohei Takahashi
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
@@ -8,10 +9,6 @@
|
||||
#define BOOST_FUSION_MAP_DETAIL_VALUE_AT_KEY_IMPL_02042013_0821
|
||||
|
||||
#include <boost/fusion/support/config.hpp>
|
||||
#include <boost/fusion/support/detail/access.hpp>
|
||||
#include <boost/type_traits/is_const.hpp>
|
||||
#include <boost/mpl/at.hpp>
|
||||
#include <boost/mpl/identity.hpp>
|
||||
#include <boost/utility/declval.hpp>
|
||||
|
||||
namespace boost { namespace fusion
|
||||
@@ -27,12 +24,10 @@ namespace boost { namespace fusion
|
||||
struct value_at_key_impl<map_tag>
|
||||
{
|
||||
template <typename Sequence, typename Key>
|
||||
struct apply
|
||||
{
|
||||
typedef
|
||||
decltype(boost::declval<Sequence>().get_val(mpl::identity<Key>()))
|
||||
type;
|
||||
};
|
||||
struct apply : BOOST_FUSION_DECLTYPE_N3031((
|
||||
boost::declval<Sequence>().get_val(mpl::identity<Key>())
|
||||
))
|
||||
{};
|
||||
};
|
||||
}
|
||||
}}
|
||||
|
||||
@@ -67,24 +67,21 @@ namespace boost { namespace fusion
|
||||
: base_type(std::forward<map>(seq))
|
||||
{}
|
||||
|
||||
template <typename Sequence>
|
||||
template <typename Sequence, typename = typename enable_if<traits::is_sequence<Sequence>>::type>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
map(Sequence const& seq
|
||||
, typename enable_if<traits::is_sequence<Sequence>, detail::enabler_>::type = detail::enabler)
|
||||
map(Sequence const& seq)
|
||||
: base_type(begin(seq), detail::map_impl_from_iterator())
|
||||
{}
|
||||
|
||||
template <typename Sequence>
|
||||
template <typename Sequence, typename = typename enable_if<traits::is_sequence<Sequence>>::type>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
map(Sequence& seq
|
||||
, typename enable_if<traits::is_sequence<Sequence>, detail::enabler_>::type = detail::enabler)
|
||||
map(Sequence& seq)
|
||||
: base_type(begin(seq), detail::map_impl_from_iterator())
|
||||
{}
|
||||
|
||||
template <typename Sequence>
|
||||
template <typename Sequence, typename = typename enable_if<traits::is_sequence<Sequence>>::type>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
map(Sequence&& seq
|
||||
, typename enable_if<traits::is_sequence<Sequence>, detail::enabler_>::type = detail::enabler)
|
||||
map(Sequence&& seq)
|
||||
: base_type(begin(seq), detail::map_impl_from_iterator())
|
||||
{}
|
||||
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// MSVC variadics at this point in time is not ready yet (ICE!)
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1900))
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1910)
|
||||
# if defined(BOOST_FUSION_HAS_VARIADIC_MAP)
|
||||
# undef BOOST_FUSION_HAS_VARIADIC_MAP
|
||||
# endif
|
||||
@@ -37,8 +36,6 @@
|
||||
# include <boost/fusion/container/map/detail/cpp03/map_fwd.hpp>
|
||||
#else
|
||||
|
||||
#include <boost/fusion/container/map/detail/map_impl.hpp>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// C++11 interface
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user