Ticket #3743: broken_support.diff
File broken_support.diff, 15.1 KB (added by , 13 years ago) |
---|
-
boost/asio/impl/write.ipp
70 70 return bytes_transferred; 71 71 } 72 72 73 #ifndef BOOST_NO_IOSTREAM 73 74 template <typename SyncWriteStream, typename Allocator, 74 75 typename CompletionCondition> 75 76 std::size_t write(SyncWriteStream& s, … … 102 103 boost::asio::detail::throw_error(ec); 103 104 return bytes_transferred; 104 105 } 106 #endif // BOOST_NO_IOSTREAM 105 107 106 108 namespace detail 107 109 { … … 213 215 async_write(s, buffers, transfer_all(), handler); 214 216 } 215 217 218 #ifndef BOOST_NO_IOSTREAM 216 219 namespace detail 217 220 { 218 221 template <typename AsyncWriteStream, typename Allocator, … … 287 290 { 288 291 async_write(s, b, transfer_all(), handler); 289 292 } 293 #endif // BOOST_NO_IOSTREAM 290 294 291 295 } // namespace asio 292 296 } // namespace boost -
boost/asio/impl/read.ipp
75 75 return bytes_transferred; 76 76 } 77 77 78 #ifndef BOOST_NO_IOSTREAM 78 79 template <typename SyncReadStream, typename Allocator, 79 80 typename CompletionCondition> 80 81 std::size_t read(SyncReadStream& s, … … 121 122 boost::asio::detail::throw_error(ec); 122 123 return bytes_transferred; 123 124 } 125 #endif // BOOST_NO_IOSTREAM 124 126 125 127 namespace detail 126 128 { … … 232 234 async_read(s, buffers, transfer_all(), handler); 233 235 } 234 236 237 #ifndef BOOST_NO_IOSTREAM 235 238 namespace detail 236 239 { 237 240 template <typename AsyncReadStream, typename Allocator, … … 340 343 { 341 344 async_read(s, b, transfer_all(), handler); 342 345 } 346 #endif // BOOST_NO_IOSTREAM 343 347 344 348 } // namespace asio 345 349 } // namespace boost -
boost/asio/impl/io_service.ipp
18 18 #include <boost/asio/detail/push_options.hpp> 19 19 20 20 #include <boost/asio/detail/push_options.hpp> 21 #include < limits>21 #include <boost/limits.hpp> 22 22 #include <boost/asio/detail/pop_options.hpp> 23 23 24 24 #include <boost/asio/detail/dev_poll_reactor.hpp> -
boost/asio/detail/reactive_socket_service.hpp
275 275 return false; 276 276 } 277 277 278 #ifndef SIOCATMARK 279 int value = sockatmark(impl.socket_); 280 if (value == -1) ec = boost::system::error_code(errno 281 , boost::system::get_system_category()); 282 return ec ? false : value != 0; 283 #else 278 284 boost::asio::detail::ioctl_arg_type value = 0; 279 285 socket_ops::ioctl(impl.socket_, SIOCATMARK, &value, ec); 280 286 #if defined(ENOTTY) … … 282 288 ec = boost::asio::error::not_socket; 283 289 #endif // defined(ENOTTY) 284 290 return ec ? false : value != 0; 291 #endif 285 292 } 286 293 287 294 // Determine the number of bytes available for reading. -
boost/asio/detail/handler_alloc_helpers.hpp
32 32 template <typename Handler> 33 33 inline void* allocate(std::size_t s, Handler* h) 34 34 { 35 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) 35 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) \ 36 || __GNUC__ < 3 36 37 return ::operator new(s); 37 38 #else 38 39 using namespace boost::asio; … … 43 44 template <typename Handler> 44 45 inline void deallocate(void* p, std::size_t s, Handler* h) 45 46 { 46 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) 47 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) \ 48 || __GNUC__ < 3 47 49 ::operator delete(p); 48 50 #else 49 51 using namespace boost::asio; -
boost/asio/detail/consuming_buffers.hpp
20 20 #include <boost/asio/detail/push_options.hpp> 21 21 #include <algorithm> 22 22 #include <cstddef> 23 #include < limits>23 #include <boost/limits.hpp> 24 24 #include <boost/config.hpp> 25 25 #include <boost/iterator/iterator_facade.hpp> 26 26 #include <boost/asio/detail/pop_options.hpp> -
boost/asio/detail/handler_invoke_helpers.hpp
31 31 template <typename Function, typename Context> 32 32 inline void invoke(const Function& function, Context* context) 33 33 { 34 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) 34 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) \ 35 || __GNUC__ < 3 35 36 Function tmp(function); 36 37 tmp(); 37 38 #else -
boost/asio/detail/socket_types.hpp
163 166 const int invalid_socket = -1; 164 167 const int socket_error_retval = -1; 165 168 const int max_addr_v4_str_len = INET_ADDRSTRLEN; 169 #ifndef INET6_ADDRSTRLEN 170 const int max_addr_v6_str_len = 256; 171 #else 166 172 const int max_addr_v6_str_len = INET6_ADDRSTRLEN + 1 + IF_NAMESIZE; 173 #endif 167 174 typedef sockaddr socket_addr_type; 168 175 typedef in_addr in4_addr_type; 169 176 # if defined(__hpux) -
boost/asio/detail/timer_queue.hpp
20 20 #include <boost/asio/detail/push_options.hpp> 21 21 #include <cstddef> 22 22 #include <functional> 23 #include < limits>23 #include <boost/limits.hpp> 24 24 #include <memory> 25 25 #include <vector> 26 26 #include <boost/config.hpp> -
boost/asio/basic_streambuf.hpp
20 20 #include <boost/asio/detail/push_options.hpp> 21 21 #include <algorithm> 22 22 #include <cstring> 23 #include < limits>23 #include <boost/limits.hpp> 24 24 #include <memory> 25 25 #include <stdexcept> 26 26 #include <streambuf> -
boost/asio/write.hpp
22 22 #include <boost/config.hpp> 23 23 #include <boost/asio/detail/pop_options.hpp> 24 24 25 #ifndef BOOST_NO_IOSTREAM 25 26 #include <boost/asio/basic_streambuf.hpp> 27 #endif 26 28 #include <boost/asio/error.hpp> 27 29 28 30 namespace boost { … … 195 197 * s, b, 196 198 * boost::asio::transfer_all()); @endcode 197 199 */ 200 #ifndef BOOST_NO_IOSTREAM 198 201 template <typename SyncWriteStream, typename Allocator> 199 202 std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b); 203 #endif 200 204 201 205 /// Write a certain amount of data to a stream before returning. 202 206 /** … … 233 237 * 234 238 * @throws boost::system::system_error Thrown on failure. 235 239 */ 240 #ifndef BOOST_NO_IOSTREAM 236 241 template <typename SyncWriteStream, typename Allocator, 237 242 typename CompletionCondition> 238 243 std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b, 239 244 CompletionCondition completion_condition); 245 #endif 240 246 241 247 /// Write a certain amount of data to a stream before returning. 242 248 /** … … 274 280 * @returns The number of bytes written. If an error occurs, returns the total 275 281 * number of bytes successfully transferred prior to the error. 276 282 */ 283 #ifndef BOOST_NO_IOSTREAM 277 284 template <typename SyncWriteStream, typename Allocator, 278 285 typename CompletionCondition> 279 286 std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b, 280 287 CompletionCondition completion_condition, boost::system::error_code& ec); 288 #endif 281 289 282 290 /*@}*/ 283 291 /** … … 449 457 * the handler will be performed in a manner equivalent to using 450 458 * boost::asio::io_service::post(). 451 459 */ 460 #ifndef BOOST_NO_IOSTREAM 452 461 template <typename AsyncWriteStream, typename Allocator, typename WriteHandler> 453 462 void async_write(AsyncWriteStream& s, basic_streambuf<Allocator>& b, 454 463 WriteHandler handler); 464 #endif 455 465 456 466 /// Start an asynchronous operation to write a certain amount of data to a 457 467 /// stream. … … 505 515 * the handler will be performed in a manner equivalent to using 506 516 * boost::asio::io_service::post(). 507 517 */ 518 #ifndef BOOST_NO_IOSTREAM 508 519 template <typename AsyncWriteStream, typename Allocator, 509 520 typename CompletionCondition, typename WriteHandler> 510 521 void async_write(AsyncWriteStream& s, basic_streambuf<Allocator>& b, 511 522 CompletionCondition completion_condition, WriteHandler handler); 523 #endif 512 524 513 525 /*@}*/ 514 526 -
boost/asio/read.hpp
22 22 #include <boost/config.hpp> 23 23 #include <boost/asio/detail/pop_options.hpp> 24 24 25 #ifndef BOOST_NO_IOSTREAM 25 26 #include <boost/asio/basic_streambuf.hpp> 27 #endif 26 28 #include <boost/asio/error.hpp> 27 29 28 30 namespace boost { … … 194 196 * s, b, 195 197 * boost::asio::transfer_all()); @endcode 196 198 */ 199 #ifndef BOOST_NO_IOSTREAM 197 200 template <typename SyncReadStream, typename Allocator> 198 201 std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b); 202 #endif 199 203 200 204 /// Attempt to read a certain amount of data from a stream before returning. 201 205 /** … … 230 234 * 231 235 * @throws boost::system::system_error Thrown on failure. 232 236 */ 237 #ifndef BOOST_NO_IOSTREAM 233 238 template <typename SyncReadStream, typename Allocator, 234 239 typename CompletionCondition> 235 240 std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b, 236 241 CompletionCondition completion_condition); 242 #endif 237 243 238 244 /// Attempt to read a certain amount of data from a stream before returning. 239 245 /** … … 269 275 * @returns The number of bytes read. If an error occurs, returns the total 270 276 * number of bytes successfully transferred prior to the error. 271 277 */ 278 #ifndef BOOST_NO_IOSTREAM 272 279 template <typename SyncReadStream, typename Allocator, 273 280 typename CompletionCondition> 274 281 std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b, 275 282 CompletionCondition completion_condition, boost::system::error_code& ec); 283 #endif 276 284 277 285 /*@}*/ 278 286 /** … … 456 464 * boost::asio::transfer_all(), 457 465 * handler); @endcode 458 466 */ 467 #ifndef BOOST_NO_IOSTREAM 459 468 template <typename AsyncReadStream, typename Allocator, typename ReadHandler> 460 469 void async_read(AsyncReadStream& s, basic_streambuf<Allocator>& b, 461 470 ReadHandler handler); 471 #endif 462 472 463 473 /// Start an asynchronous operation to read a certain amount of data from a 464 474 /// stream. … … 511 521 * the handler will be performed in a manner equivalent to using 512 522 * boost::asio::io_service::post(). 513 523 */ 524 #ifndef BOOST_NO_IOSTREAM 514 525 template <typename AsyncReadStream, typename Allocator, 515 526 typename CompletionCondition, typename ReadHandler> 516 527 void async_read(AsyncReadStream& s, basic_streambuf<Allocator>& b, 517 528 CompletionCondition completion_condition, ReadHandler handler); 529 #endif 518 530 519 531 /*@}*/ 520 532 -
boost/asio/ip/address_v4.hpp
281 281 * 282 282 * @relates boost::asio::ip::address_v4 283 283 */ 284 #ifndef BOOST_NO_IOSTREAM 284 285 template <typename Elem, typename Traits> 285 286 std::basic_ostream<Elem, Traits>& operator<<( 286 287 std::basic_ostream<Elem, Traits>& os, const address_v4& addr) … … 299 300 os << os.widen(*i); 300 301 return os; 301 302 } 303 #endif 302 304 303 305 } // namespace ip 304 306 } // namespace asio -
boost/asio/ip/address_v6.hpp
395 395 * 396 396 * @relates boost::asio::ip::address_v6 397 397 */ 398 #ifndef BOOST_NO_IOSTREAM 398 399 template <typename Elem, typename Traits> 399 400 std::basic_ostream<Elem, Traits>& operator<<( 400 401 std::basic_ostream<Elem, Traits>& os, const address_v6& addr) … … 413 414 os << os.widen(*i); 414 415 return os; 415 416 } 417 #endif 416 418 417 419 } // namespace ip 418 420 } // namespace asio -
boost/asio/ip/basic_endpoint.hpp
21 21 #include <boost/throw_exception.hpp> 22 22 #include <boost/detail/workaround.hpp> 23 23 #include <cstring> 24 #ifndef BOOST_NO_IOSTREAM 24 25 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) 25 26 # include <ostream> 26 27 #endif // BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) 27 28 #include <sstream> 29 #endif // BOOST_NO_IOSTREAM 28 30 #include <boost/asio/detail/pop_options.hpp> 29 31 30 32 #include <boost/asio/error.hpp> … … 309 311 * 310 312 * @relates boost::asio::ip::basic_endpoint 311 313 */ 314 #ifndef BOOST_NO_IOSTREAM 312 315 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) 313 316 template <typename InternetProtocol> 314 317 std::ostream& operator<<(std::ostream& os, … … 367 370 return os; 368 371 } 369 372 #endif // BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) 373 #endif // BOOST_NO_IOSTREAM 370 374 371 375 } // namespace ip 372 376 } // namespace asio -
boost/asio/ip/address.hpp
262 262 * 263 263 * @relates boost::asio::ip::address 264 264 */ 265 #ifndef BOOST_NO_IOSTREAM 265 266 template <typename Elem, typename Traits> 266 267 std::basic_ostream<Elem, Traits>& operator<<( 267 268 std::basic_ostream<Elem, Traits>& os, const address& addr) … … 269 270 os << addr.to_string(); 270 271 return os; 271 272 } 273 #endif 272 274 273 275 } // namespace ip 274 276 } // namespace asio -
boost/asio/ip/tcp.hpp
17 17 18 18 #include <boost/asio/detail/push_options.hpp> 19 19 20 #include <boost/config.hpp> 20 21 #include <boost/asio/basic_socket_acceptor.hpp> 22 #ifndef BOOST_NO_IOSTREAM 21 23 #include <boost/asio/basic_socket_iostream.hpp> 24 #endif 22 25 #include <boost/asio/basic_stream_socket.hpp> 23 26 #include <boost/asio/ip/basic_endpoint.hpp> 24 27 #include <boost/asio/ip/basic_resolver.hpp> … … 94 97 typedef basic_resolver<tcp> resolver; 95 98 96 99 /// The TCP iostream type. 100 #ifndef BOOST_NO_IOSTREAM 97 101 typedef basic_socket_iostream<tcp> iostream; 102 #endif 98 103 99 104 /// Socket option for disabling the Nagle algorithm. 100 105 /** -
boost/asio/time_traits.hpp
43 43 /// Get the current time. 44 44 static time_type now() 45 45 { 46 #ifdef BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK 46 47 return boost::posix_time::microsec_clock::universal_time(); 48 #else 49 return boost::posix_time::second_clock::universal_time(); 50 #endif 47 51 } 48 52 49 53 /// Add a duration to a time.