diff options
| author | Remko Tronçon <git@el-tramo.be> | 2010-04-11 18:19:17 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2010-04-11 19:20:07 (GMT) | 
| commit | 857e44c156a1dbefcb49bb5792c4384cebd8762a (patch) | |
| tree | 11947fb81ad9c502627f1b2bb8f090fb8d53c107 /3rdParty/Boost/src/boost/asio/impl/write.ipp | |
| parent | 77d4eb7588e113beaa03f3347523b26adefdeb06 (diff) | |
| download | swift-contrib-857e44c156a1dbefcb49bb5792c4384cebd8762a.zip swift-contrib-857e44c156a1dbefcb49bb5792c4384cebd8762a.tar.bz2  | |
Updated Boost to 1.42.
Diffstat (limited to '3rdParty/Boost/src/boost/asio/impl/write.ipp')
| -rw-r--r-- | 3rdParty/Boost/src/boost/asio/impl/write.ipp | 22 | 
1 files changed, 15 insertions, 7 deletions
diff --git a/3rdParty/Boost/src/boost/asio/impl/write.ipp b/3rdParty/Boost/src/boost/asio/impl/write.ipp index 4434a91..76bace3 100644 --- a/3rdParty/Boost/src/boost/asio/impl/write.ipp +++ b/3rdParty/Boost/src/boost/asio/impl/write.ipp @@ -2,7 +2,7 @@  // write.ipp  // ~~~~~~~~~  // -// Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2010 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) @@ -70,6 +70,8 @@ inline std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers,    return bytes_transferred;  } +#if !defined(BOOST_NO_IOSTREAM) +  template <typename SyncWriteStream, typename Allocator,      typename CompletionCondition>  std::size_t write(SyncWriteStream& s, @@ -103,6 +105,8 @@ inline std::size_t write(SyncWriteStream& s,    return bytes_transferred;  } +#endif // !defined(BOOST_NO_IOSTREAM) +  namespace detail  {    template <typename AsyncWriteStream, typename ConstBufferSequence, @@ -155,7 +159,7 @@ namespace detail          CompletionCondition, WriteHandler>* this_handler)    {      return boost_asio_handler_alloc_helpers::allocate( -        size, &this_handler->handler_); +        size, this_handler->handler_);    }    template <typename AsyncWriteStream, typename ConstBufferSequence, @@ -165,7 +169,7 @@ namespace detail          CompletionCondition, WriteHandler>* this_handler)    {      boost_asio_handler_alloc_helpers::deallocate( -        pointer, size, &this_handler->handler_); +        pointer, size, this_handler->handler_);    }    template <typename Function, typename AsyncWriteStream, @@ -176,7 +180,7 @@ namespace detail          CompletionCondition, WriteHandler>* this_handler)    {      boost_asio_handler_invoke_helpers::invoke( -        function, &this_handler->handler_); +        function, this_handler->handler_);    }  } // namespace detail @@ -213,6 +217,8 @@ inline void async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers,    async_write(s, buffers, transfer_all(), handler);  } +#if !defined(BOOST_NO_IOSTREAM) +  namespace detail  {    template <typename AsyncWriteStream, typename Allocator, @@ -246,7 +252,7 @@ namespace detail          Allocator, WriteHandler>* this_handler)    {      return boost_asio_handler_alloc_helpers::allocate( -        size, &this_handler->handler_); +        size, this_handler->handler_);    }    template <typename AsyncWriteStream, typename Allocator, @@ -256,7 +262,7 @@ namespace detail          Allocator, WriteHandler>* this_handler)    {      boost_asio_handler_alloc_helpers::deallocate( -        pointer, size, &this_handler->handler_); +        pointer, size, this_handler->handler_);    }    template <typename Function, typename AsyncWriteStream, typename Allocator, @@ -266,7 +272,7 @@ namespace detail          Allocator, WriteHandler>* this_handler)    {      boost_asio_handler_invoke_helpers::invoke( -        function, &this_handler->handler_); +        function, this_handler->handler_);    }  } // namespace detail @@ -288,6 +294,8 @@ inline void async_write(AsyncWriteStream& s,    async_write(s, b, transfer_all(), handler);  } +#endif // !defined(BOOST_NO_IOSTREAM) +  } // namespace asio  } // namespace boost  | 
 Swift