diff --git a/hash/doc/changes.qbk b/hash/doc/changes.qbk index 4d0515a..667322b 100644 --- a/hash/doc/changes.qbk +++ b/hash/doc/changes.qbk @@ -69,5 +69,9 @@ * Changed the warnings in the deprecated headers from 1.34.0 to errors. These will be removed in a future version of Boost. +* Moved detail headers out of `boost/functional/detail`, since they are part of + functional/hash, not functional. `boost/functional/detail/container_fwd.hpp` + has been moved to `boost/detail/container_fwd.hpp` as it's used outside of + this library, the others have been moved to `boost/functional/hash/detail`. [endsect] diff --git a/include/boost/functional/detail/container_fwd.hpp b/include/boost/functional/detail/container_fwd.hpp index 8685905..9a69d15 100644 --- a/include/boost/functional/detail/container_fwd.hpp +++ b/include/boost/functional/detail/container_fwd.hpp @@ -3,93 +3,17 @@ // 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) -#if !defined(BOOST_DETAIL_CONTAINER_FWD_HPP) -#define BOOST_DETAIL_CONTAINER_FWD_HPP +// Forwarding header for container_fwd.hpp's new location. +// This header is deprecated, I'll be adding a warning in a future release, +// then converting it to an error and finally removing this header completely. -#include -#include +#if !defined(BOOST_FUNCTIONAL_DETAIL_CONTAINER_FWD_HPP) +#define BOOST_FUNCTIONAL_DETAIL_CONTAINER_FWD_HPP -#if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) -#define BOOST_HASH_CHAR_TRAITS string_char_traits -#else -#define BOOST_HASH_CHAR_TRAITS char_traits +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +# pragma once #endif -#if (defined(__GLIBCXX__) && defined(_GLIBCXX_DEBUG)) \ - || BOOST_WORKAROUND(__BORLANDC__, > 0x551) \ - || BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x842)) \ - || (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) - -#include -#include -#include -#include -#include -#include -#include -#include - -#else - -#include - -#if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) && \ - defined(__STL_CONFIG_H) - -#define BOOST_CONTAINER_FWD_BAD_BITSET - -#if !defined(__STL_NON_TYPE_TMPL_PARAM_BUG) -#define BOOST_CONTAINER_FWD_BAD_DEQUE -#endif - -#endif - -#if defined(BOOST_CONTAINER_FWD_BAD_DEQUE) -#include -#endif - -#if defined(BOOST_CONTAINER_FWD_BAD_BITSET) -#include -#endif - -#if defined(BOOST_MSVC) -#pragma warning(push) -#pragma warning(disable:4099) // struct/class mismatch in fwd declarations -#endif - -namespace std -{ - template class allocator; - template class basic_string; - template struct BOOST_HASH_CHAR_TRAITS; - template class complex; -} - -// gcc 3.4 and greater -namespace std -{ -#if !defined(BOOST_CONTAINER_FWD_BAD_DEQUE) - template class deque; -#endif - - template class list; - template class vector; - template class map; - template - class multimap; - template class set; - template class multiset; - -#if !defined(BOOST_CONTAINER_FWD_BAD_BITSET) - template class bitset; -#endif - template struct pair; -} - -#if defined(BOOST_MSVC) -#pragma warning(pop) -#endif - -#endif +#include #endif diff --git a/include/boost/functional/detail/float_functions.hpp b/include/boost/functional/hash/detail/float_functions.hpp similarity index 97% rename from include/boost/functional/detail/float_functions.hpp rename to include/boost/functional/hash/detail/float_functions.hpp index 5cef36e..154bab7 100644 --- a/include/boost/functional/detail/float_functions.hpp +++ b/include/boost/functional/hash/detail/float_functions.hpp @@ -3,8 +3,8 @@ // 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) -#if !defined(BOOST_FUNCTIONAL_DETAIL_FLOAT_FUNCTIONS_HPP) -#define BOOST_FUNCTIONAL_DETAIL_FLOAT_FUNCTIONS_HPP +#if !defined(BOOST_FUNCTIONAL_HASH_DETAIL_FLOAT_FUNCTIONS_HPP) +#define BOOST_FUNCTIONAL_HASH_DETAIL_FLOAT_FUNCTIONS_HPP #include diff --git a/include/boost/functional/detail/hash_float.hpp b/include/boost/functional/hash/detail/hash_float.hpp similarity index 96% rename from include/boost/functional/detail/hash_float.hpp rename to include/boost/functional/hash/detail/hash_float.hpp index dc35afb..ca449da 100644 --- a/include/boost/functional/detail/hash_float.hpp +++ b/include/boost/functional/hash/detail/hash_float.hpp @@ -7,8 +7,8 @@ // http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf // issue 6.18. -#if !defined(BOOST_FUNCTIONAL_DETAIL_HASH_FLOAT_HEADER) -#define BOOST_FUNCTIONAL_DETAIL_HASH_FLOAT_HEADER +#if !defined(BOOST_FUNCTIONAL_HASH_DETAIL_HASH_FLOAT_HEADER) +#define BOOST_FUNCTIONAL_HASH_DETAIL_HASH_FLOAT_HEADER #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once @@ -22,7 +22,7 @@ #endif #endif -#include +#include #include #include #include diff --git a/include/boost/functional/hash/hash.hpp b/include/boost/functional/hash/hash.hpp index 09ca567..9de4990 100644 --- a/include/boost/functional/hash/hash.hpp +++ b/include/boost/functional/hash/hash.hpp @@ -12,8 +12,8 @@ #include #include -#include -#include +#include +#include #include #if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)