update boost

This commit is contained in:
2023-11-24 12:56:13 -06:00
parent cfc99971af
commit 19d727037a
9260 changed files with 849256 additions and 299957 deletions

View File

@@ -2,7 +2,7 @@
// handler_alloc_hook.hpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
@@ -23,7 +23,30 @@
namespace boost {
namespace asio {
/// Default allocation function for handlers.
#if defined(BOOST_ASIO_NO_DEPRECATED)
// Places in asio that would have previously called the allocate or deallocate
// hooks to manage memory, now call them only to check whether the result types
// are these types. If the result is not the correct type, it indicates that
// the user code still has the old hooks in place, and if so we want to trigger
// a compile error.
enum asio_handler_allocate_is_no_longer_used {};
enum asio_handler_deallocate_is_no_longer_used {};
typedef asio_handler_allocate_is_no_longer_used
asio_handler_allocate_is_deprecated;
typedef asio_handler_deallocate_is_no_longer_used
asio_handler_deallocate_is_deprecated;
#else // defined(BOOST_ASIO_NO_DEPRECATED)
typedef void* asio_handler_allocate_is_deprecated;
typedef void asio_handler_deallocate_is_deprecated;
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
/// (Deprecated: Use the associated_allocator trait.) Default allocation
/// function for handlers.
/**
* Asynchronous operations may need to allocate temporary objects. Since
* asynchronous operations have a handler function object, these temporary
@@ -55,8 +78,8 @@ namespace asio {
* }
* @endcode
*/
BOOST_ASIO_DECL void* asio_handler_allocate(
std::size_t size, ...);
BOOST_ASIO_DECL asio_handler_allocate_is_deprecated
asio_handler_allocate(std::size_t size, ...);
/// Default deallocation function for handlers.
/**
@@ -68,8 +91,8 @@ BOOST_ASIO_DECL void* asio_handler_allocate(
*
* @sa asio_handler_allocate.
*/
BOOST_ASIO_DECL void asio_handler_deallocate(
void* pointer, std::size_t size, ...);
BOOST_ASIO_DECL asio_handler_deallocate_is_deprecated
asio_handler_deallocate(void* pointer, std::size_t size, ...);
} // namespace asio
} // namespace boost