comparison DEPENDENCIES/generic/include/boost/asio/completion_condition.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 // 1 //
2 // completion_condition.hpp 2 // completion_condition.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~ 3 // ~~~~~~~~~~~~~~~~~~~~~~~~
4 // 4 //
5 // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 // 6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying 7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 // 9 //
10 10
24 namespace asio { 24 namespace asio {
25 25
26 namespace detail { 26 namespace detail {
27 27
28 // The default maximum number of bytes to transfer in a single operation. 28 // The default maximum number of bytes to transfer in a single operation.
29 enum { default_max_transfer_size = 65536 }; 29 enum default_max_transfer_size_t { default_max_transfer_size = 65536 };
30 30
31 // Adapt result of old-style completion conditions (which had a bool result 31 // Adapt result of old-style completion conditions (which had a bool result
32 // where true indicated that the operation was complete). 32 // where true indicated that the operation was complete).
33 inline std::size_t adapt_completion_condition_result(bool result) 33 inline std::size_t adapt_completion_condition_result(bool result)
34 { 34 {