X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fasio%2Fdetail%2Fbind_handler.hpp;h=199a5d9db8b091f26a0d79fd6dbda076a1f4da7b;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=3b61033614e10db854c9487f938ae95ebfe8bbc1;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/boost/asio/detail/bind_handler.hpp b/ceph/src/boost/boost/asio/detail/bind_handler.hpp index 3b6103361..199a5d9db 100644 --- a/ceph/src/boost/boost/asio/detail/bind_handler.hpp +++ b/ceph/src/boost/boost/asio/detail/bind_handler.hpp @@ -76,19 +76,29 @@ public: }; template -inline void* asio_handler_allocate(std::size_t size, +inline asio_handler_allocate_is_deprecated +asio_handler_allocate(std::size_t size, binder1* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_deallocate(void* pointer, std::size_t size, +inline asio_handler_deallocate_is_deprecated +asio_handler_deallocate(void* pointer, std::size_t size, binder1* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -100,19 +110,27 @@ inline bool asio_handler_is_continuation( } template -inline void asio_handler_invoke(Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(Function& function, binder1* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_invoke(const Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(const Function& function, binder1* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -177,19 +195,29 @@ public: }; template -inline void* asio_handler_allocate(std::size_t size, +inline asio_handler_allocate_is_deprecated +asio_handler_allocate(std::size_t size, binder2* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_deallocate(void* pointer, std::size_t size, +inline asio_handler_deallocate_is_deprecated +asio_handler_deallocate(void* pointer, std::size_t size, binder2* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -201,19 +229,27 @@ inline bool asio_handler_is_continuation( } template -inline void asio_handler_invoke(Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(Function& function, binder2* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_invoke(const Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(const Function& function, binder2* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -284,19 +320,29 @@ public: }; template -inline void* asio_handler_allocate(std::size_t size, +inline asio_handler_allocate_is_deprecated +asio_handler_allocate(std::size_t size, binder3* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_deallocate(void* pointer, std::size_t size, +inline asio_handler_deallocate_is_deprecated +asio_handler_deallocate(void* pointer, std::size_t size, binder3* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -309,20 +355,28 @@ inline bool asio_handler_is_continuation( template -inline void asio_handler_invoke(Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(Function& function, binder3* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_invoke(const Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(const Function& function, binder3* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -402,20 +456,30 @@ public: template -inline void* asio_handler_allocate(std::size_t size, +inline asio_handler_allocate_is_deprecated +asio_handler_allocate(std::size_t size, binder4* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_deallocate(void* pointer, std::size_t size, +inline asio_handler_deallocate_is_deprecated +asio_handler_deallocate(void* pointer, std::size_t size, binder4* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_invoke(Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(Function& function, binder4* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_invoke(const Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(const Function& function, binder4* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void* asio_handler_allocate(std::size_t size, +inline asio_handler_allocate_is_deprecated +asio_handler_allocate(std::size_t size, binder5* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_deallocate(void* pointer, std::size_t size, +inline asio_handler_deallocate_is_deprecated +asio_handler_deallocate(void* pointer, std::size_t size, binder5* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_invoke(Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(Function& function, binder5* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_invoke(const Function& function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(const Function& function, binder5* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void* asio_handler_allocate(std::size_t size, +inline asio_handler_allocate_is_deprecated +asio_handler_allocate(std::size_t size, move_binder1* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_deallocate(void* pointer, std::size_t size, +inline asio_handler_deallocate_is_deprecated +asio_handler_deallocate(void* pointer, std::size_t size, move_binder1* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -635,11 +735,15 @@ inline bool asio_handler_is_continuation( } template -inline void asio_handler_invoke(BOOST_ASIO_MOVE_ARG(Function) function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(BOOST_ASIO_MOVE_ARG(Function) function, move_binder1* this_handler) { boost_asio_handler_invoke_helpers::invoke( BOOST_ASIO_MOVE_CAST(Function)(function), this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -674,19 +778,29 @@ public: }; template -inline void* asio_handler_allocate(std::size_t size, +inline asio_handler_allocate_is_deprecated +asio_handler_allocate(std::size_t size, move_binder2* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template -inline void asio_handler_deallocate(void* pointer, std::size_t size, +inline asio_handler_deallocate_is_deprecated +asio_handler_deallocate(void* pointer, std::size_t size, move_binder2* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -698,11 +812,15 @@ inline bool asio_handler_is_continuation( } template -inline void asio_handler_invoke(BOOST_ASIO_MOVE_ARG(Function) function, +inline asio_handler_invoke_is_deprecated +asio_handler_invoke(BOOST_ASIO_MOVE_ARG(Function) function, move_binder2* this_handler) { boost_asio_handler_invoke_helpers::invoke( BOOST_ASIO_MOVE_CAST(Function)(function), this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } #endif // defined(BOOST_ASIO_HAS_MOVE) @@ -735,6 +853,7 @@ struct associated_allocator, Allocator> template struct associated_executor, Executor> + : detail::associated_executor_forwarding_base { typedef typename associated_executor::type type; @@ -747,6 +866,7 @@ struct associated_executor, Executor> template struct associated_executor, Executor> + : detail::associated_executor_forwarding_base { typedef typename associated_executor::type type; @@ -786,6 +906,7 @@ struct associated_allocator< template struct associated_executor, Executor> + : detail::associated_executor_forwarding_base { typedef typename associated_executor::type type; @@ -798,6 +919,7 @@ struct associated_executor, Executor> template struct associated_executor, Executor> + : detail::associated_executor_forwarding_base { typedef typename associated_executor::type type;