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/functional/hash/extensions.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/functional/hash/extensions.hpp')
| -rw-r--r-- | 3rdParty/Boost/src/boost/functional/hash/extensions.hpp | 83 | 
1 files changed, 17 insertions, 66 deletions
| diff --git a/3rdParty/Boost/src/boost/functional/hash/extensions.hpp b/3rdParty/Boost/src/boost/functional/hash/extensions.hpp index 4358736..eafaefe 100644 --- a/3rdParty/Boost/src/boost/functional/hash/extensions.hpp +++ b/3rdParty/Boost/src/boost/functional/hash/extensions.hpp @@ -14,6 +14,11 @@  #define BOOST_FUNCTIONAL_HASH_EXTENSIONS_HPP +#include <boost/config.hpp> +#if defined(BOOST_HAS_PRAGMA_ONCE) +#pragma once +#endif +  #include <boost/functional/hash/hash.hpp> -#include <boost/functional/hash/detail/container_fwd_0x.hpp> +#include <boost/detail/container_fwd.hpp>  #include <boost/utility/enable_if.hpp>  #include <boost/static_assert.hpp> @@ -21,14 +26,18 @@  #include <boost/preprocessor/repetition/enum_params.hpp> -#if defined(_MSC_VER) && (_MSC_VER >= 1020) -# pragma once +#if !defined(BOOST_NO_CXX11_HDR_ARRAY) +#   include <array>  #endif -#if defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING) -#include <boost/type_traits/is_array.hpp> +#if !defined(BOOST_NO_CXX11_HDR_TUPLE) +#   include <tuple>  #endif -#if BOOST_WORKAROUND(BOOST_MSVC, < 1300) -#include <boost/type_traits/is_const.hpp> +#if !defined(BOOST_NO_CXX11_HDR_MEMORY) +#   include <memory> +#endif + +#if defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING) +#include <boost/type_traits/is_array.hpp>  #endif @@ -150,5 +159,5 @@ namespace boost      } -#if !defined(BOOST_NO_VARIADIC_TEMPLATES) +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)      template <typename... T>      inline std::size_t hash_value(std::tuple<T...> const& v) @@ -221,9 +230,5 @@ namespace boost              struct inner              { -#if !BOOST_WORKAROUND(BOOST_MSVC, < 1300)                  static std::size_t call(Array const& v) -#else -                static std::size_t call(Array& v) -#endif                  {                      const int size = sizeof(v) / sizeof(*v); @@ -287,6 +292,4 @@ namespace boost          struct hash_impl; -#if !BOOST_WORKAROUND(BOOST_MSVC, < 1300) -          template <>          struct hash_impl<false> @@ -309,56 +312,4 @@ namespace boost              };          }; - -#else // Visual C++ 6.5 - -        // Visual C++ 6.5 has problems with nested member functions and -        // applying const to const types in templates. So we get this: - -        template <bool IsConst> -        struct hash_impl_msvc -        { -            template <class T> -            struct inner -                : public std::unary_function<T, std::size_t> -            { -                std::size_t operator()(T const& val) const -                { -                    return hash_detail::call_hash<T const>::call(val); -                } - -                std::size_t operator()(T& val) const -                { -                    return hash_detail::call_hash<T>::call(val); -                } -            }; -        }; - -        template <> -        struct hash_impl_msvc<true> -        { -            template <class T> -            struct inner -                : public std::unary_function<T, std::size_t> -            { -                std::size_t operator()(T& val) const -                { -                    return hash_detail::call_hash<T>::call(val); -                } -            }; -        }; -         -        template <class T> -        struct hash_impl_msvc2 -            : public hash_impl_msvc<boost::is_const<T>::value> -                    ::BOOST_NESTED_TEMPLATE inner<T> {}; -         -        template <> -        struct hash_impl<false> -        { -            template <class T> -            struct inner : public hash_impl_msvc2<T> {}; -        }; - -#endif // Visual C++ 6.5      }  #endif  // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION | 
 Swift
 Swift