diff options
| author | Tobias Markmann <tm@ayena.de> | 2014-10-19 20:22:58 (GMT) | 
|---|---|---|
| committer | Tobias Markmann <tm@ayena.de> | 2014-10-20 13:49:33 (GMT) | 
| commit | 6b22dfcf59474dd016a0355a3102a1dd3692d92c (patch) | |
| tree | 2b1fd33be433a91e81fee84fdc2bf1b52575d934 /3rdParty/Boost/src/boost/variant/detail/visitation_impl.hpp | |
| parent | 38b0cb785fea8eae5e48fae56440695fdfd10ee1 (diff) | |
| download | swift-contrib-6b22dfcf59474dd016a0355a3102a1dd3692d92c.zip swift-contrib-6b22dfcf59474dd016a0355a3102a1dd3692d92c.tar.bz2 | |
Update Boost in 3rdParty to version 1.56.0.
This updates Boost in our 3rdParty directory to version 1.56.0.
Updated our update.sh script to stop on error.
Changed error reporting in SwiftTools/CrashReporter.cpp to SWIFT_LOG due to
missing include of <iostream> with newer Boost.
Change-Id: I4b35c77de951333979a524097f35f5f83d325edc
Diffstat (limited to '3rdParty/Boost/src/boost/variant/detail/visitation_impl.hpp')
| -rw-r--r-- | 3rdParty/Boost/src/boost/variant/detail/visitation_impl.hpp | 43 | 
1 files changed, 12 insertions, 31 deletions
| diff --git a/3rdParty/Boost/src/boost/variant/detail/visitation_impl.hpp b/3rdParty/Boost/src/boost/variant/detail/visitation_impl.hpp index 9cc3015..96bc274 100644 --- a/3rdParty/Boost/src/boost/variant/detail/visitation_impl.hpp +++ b/3rdParty/Boost/src/boost/variant/detail/visitation_impl.hpp @@ -20,7 +20,6 @@  #include "boost/variant/detail/forced_return.hpp"  #include "boost/variant/detail/generic_result_type.hpp" -#include "boost/assert.hpp"  #include "boost/mpl/eval_if.hpp"  #include "boost/mpl/bool.hpp"  #include "boost/mpl/identity.hpp" @@ -33,7 +32,7 @@  #include "boost/preprocessor/repeat.hpp"  #include "boost/type_traits/is_same.hpp"  #include "boost/type_traits/has_nothrow_copy.hpp" -#include "boost/variant/detail/has_nothrow_move.hpp" +#include "boost/type_traits/is_nothrow_move_constructible.hpp"  #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)   # pragma warning (push)  @@ -47,10 +46,18 @@  // and potentially increase runtime performance. (TODO: Investigate further.)  //  #if !defined(BOOST_VARIANT_VISITATION_UNROLLING_LIMIT) + +#ifndef BOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES +#   include "boost/mpl/limits/list.hpp" +#   define BOOST_VARIANT_VISITATION_UNROLLING_LIMIT   \ +        BOOST_MPL_LIMIT_LIST_SIZE +#else  #   define BOOST_VARIANT_VISITATION_UNROLLING_LIMIT   \          BOOST_VARIANT_LIMIT_TYPES  #endif +#endif +  namespace boost {  namespace detail { namespace variant { @@ -67,7 +74,6 @@ struct apply_visitor_unrolled {};  // "Never ending" iterator range facilitates visitation_impl unrolling.  // -#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)  template <typename Iter, typename LastIter>  struct visitation_impl_step @@ -87,29 +93,6 @@ struct visitation_impl_step< LastIter,LastIter >      typedef visitation_impl_step next;  }; -#else // defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) - -template <typename Iter, typename LastIter> -struct visitation_impl_step -{ -    typedef typename mpl::eval_if< -          is_same<Iter, LastIter> -        , mpl::identity<apply_visitor_unrolled> -        , Iter -        >::type type; - -    typedef typename mpl::eval_if< -          is_same<type, apply_visitor_unrolled> //is_same<Iter, LastIter> -        , mpl::identity<LastIter> -        , mpl::next<Iter> -        >::type next_iter; - -    typedef visitation_impl_step< -          next_iter, LastIter -        > next; -}; - -#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION workaround  ///////////////////////////////////////////////////////////////////////////////  // (detail) function template visitation_impl_invoke @@ -163,7 +146,7 @@ visitation_impl_invoke(  {      typedef typename mpl::or_<            NoBackupFlag -        , has_nothrow_move_constructor<T> +        , is_nothrow_move_constructible<T>          , has_nothrow_copy<T>          >::type never_uses_backup; @@ -178,8 +161,7 @@ inline      BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE(typename Visitor::result_type)  visitation_impl_invoke(int, Visitor&, VoidPtrCV, apply_visitor_unrolled*, NBF, long)  { -    // should never be here at runtime: -    BOOST_ASSERT(false); +    // should never be here at runtime!      typedef typename Visitor::result_type result_type;      return ::boost::detail::variant::forced_return< result_type >();  } @@ -203,8 +185,7 @@ visitation_impl(      , NBF, W* = 0, S* = 0      )  { -    // should never be here at runtime: -    BOOST_ASSERT(false); +    // should never be here at runtime!      typedef typename Visitor::result_type result_type;      return ::boost::detail::variant::forced_return< result_type >();  } | 
 Swift
 Swift