Protect all code from compiler option changes that may be caused by

included system/boost headers. This fixes the crashes with borland c++.
This commit is contained in:
chris 2003-09-14 01:13:00 +00:00
parent 8fa83024dc
commit 953af362d5
57 changed files with 221 additions and 95 deletions

View File

@ -4,8 +4,8 @@
BOOSTDIR = ../../boost_1_30_0
!endif
BOR_CXXFLAGS = -q -O2 -v -vi -y -tWM -tWR -tWC -w-inl -w-par -I$(BOOSTDIR)
BOR_LDFLAGS = -q -O2 -v -vi -y -tWM -tWR -tWC -L$(BOOSTDIR)/libs/thread/build/bin-stage
BOR_CXXFLAGS = -q -O2 -v -vi -y -a8 -b -Ve- -Vx- -tWM -tWR -tWC -w-inl -w-par -I$(BOOSTDIR)
BOR_LDFLAGS = -q -O2 -v -vi -y -a8 -b -Ve- -Vx- -tWM -tWR -tWC -L$(BOOSTDIR)/libs/thread/build/bin-stage
BOR_lib_libasio_a = ../lib/asio.lib
BOR_lib_LIBRARIES = $(BOR_lib_libasio_a)

View File

@ -15,11 +15,14 @@
#ifndef ASIO_BUFFERED_RECV_STREAM_HPP
#define ASIO_BUFFERED_RECV_STREAM_HPP
#include <boost/noncopyable.hpp>
#include <boost/type_traits.hpp>
#include "asio/completion_context.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/noncopyable.hpp>
#include <boost/type_traits.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
namespace asio {

View File

@ -15,11 +15,14 @@
#ifndef ASIO_BUFFERED_SEND_STREAM_HPP
#define ASIO_BUFFERED_SEND_STREAM_HPP
#include <boost/noncopyable.hpp>
#include <boost/type_traits.hpp>
#include "asio/completion_context.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/noncopyable.hpp>
#include <boost/type_traits.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
namespace asio {

View File

@ -15,11 +15,14 @@
#ifndef ASIO_BUFFERED_STREAM_HPP
#define ASIO_BUFFERED_STREAM_HPP
#include <boost/noncopyable.hpp>
#include "asio/buffered_recv_stream.hpp"
#include "asio/buffered_send_stream.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/noncopyable.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/buffered_recv_stream.hpp"
#include "asio/buffered_send_stream.hpp"
namespace asio {

View File

@ -15,9 +15,11 @@
#ifndef ASIO_COMPLETION_CONTEXT_HPP
#define ASIO_COMPLETION_CONTEXT_HPP
#include <boost/noncopyable.hpp>
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/noncopyable.hpp>
#include "asio/detail/pop_options.hpp"
namespace asio {

View File

@ -13,9 +13,12 @@
//
#include "asio/counting_completion_context.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/thread.hpp>
#include <cassert>
#include <queue>
#include "asio/detail/pop_options.hpp"
namespace asio {

View File

@ -15,10 +15,10 @@
#ifndef ASIO_COUNTING_COMPLETION_CONTEXT_HPP
#define ASIO_COUNTING_COMPLETION_CONTEXT_HPP
#include "asio/completion_context.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/completion_context.hpp"
namespace asio {
/// The counting_completion_context class is a concrete implementation of the

View File

@ -15,11 +15,14 @@
#ifndef ASIO_DEMUXER_HPP
#define ASIO_DEMUXER_HPP
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "asio/completion_context.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
namespace asio {

View File

@ -15,12 +15,12 @@
#ifndef ASIO_DEMUXER_SERVICE_HPP
#define ASIO_DEMUXER_SERVICE_HPP
#include "asio/detail/push_options.hpp"
#include "asio/demuxer.hpp"
#include "asio/service.hpp"
#include "asio/service_type_id.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
/// The demuxer_service class is a base class for service implementations that

View File

@ -15,9 +15,11 @@
#ifndef ASIO_DEMUXER_TASK_HPP
#define ASIO_DEMUXER_TASK_HPP
#include <boost/thread/xtime.hpp>
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/thread/xtime.hpp>
#include "asio/detail/pop_options.hpp"
namespace asio {

View File

@ -15,10 +15,10 @@
#ifndef ASIO_DETAIL_DEFAULT_SERVICE_PROVIDER_FACTORY_HPP
#define ASIO_DETAIL_DEFAULT_SERVICE_PROVIDER_FACTORY_HPP
#include "asio/service_provider_factory.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/service_provider_factory.hpp"
namespace asio {
namespace detail {

View File

@ -13,7 +13,10 @@
//
#include "asio/detail/demuxer_thread_pool.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/thread.hpp>
#include "asio/detail/pop_options.hpp"
namespace asio {
namespace detail {

View File

@ -15,13 +15,15 @@
#ifndef ASIO_DETAIL_DEMUXER_THREAD_POOL_HPP
#define ASIO_DETAIL_DEMUXER_THREAD_POOL_HPP
#include "asio/detail/push_options.hpp"
#if defined(_WIN32)
#include "asio/detail/socket_types.hpp"
#else
#include <pthread.h>
#endif // defined(_WIN32)
#include "asio/detail/push_options.hpp"
#include <pthread.h>
#include "asio/detail/pop_options.hpp"
#endif // defined(_WIN32)
namespace asio {
namespace detail {

View File

@ -13,13 +13,17 @@
//
#include "asio/detail/select_interrupter.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/throw_exception.hpp>
#include "asio/socket_error.hpp"
#include "asio/detail/socket_holder.hpp"
#include "asio/detail/socket_ops.hpp"
#if !defined(_WIN32)
#include <fcntl.h>
#endif // !defined(_WIN32)
#include "asio/detail/pop_options.hpp"
#include "asio/socket_error.hpp"
#include "asio/detail/socket_holder.hpp"
#include "asio/detail/socket_ops.hpp"
namespace asio {
namespace detail {

View File

@ -15,10 +15,10 @@
#ifndef ASIO_DETAIL_SELECT_INTERRUPTER_HPP
#define ASIO_DETAIL_SELECT_INTERRUPTER_HPP
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {
namespace detail {

View File

@ -15,10 +15,10 @@
#ifndef ASIO_DETAIL_SELECT_OP_HPP
#define ASIO_DETAIL_SELECT_OP_HPP
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {
namespace detail {

View File

@ -13,7 +13,11 @@
//
#include "asio/detail/select_op_queue.hpp"
#include "asio/detail/push_options.hpp"
#include <cassert>
#include "asio/detail/pop_options.hpp"
#include "asio/detail/select_op.hpp"
namespace asio {

View File

@ -15,10 +15,13 @@
#ifndef ASIO_DETAIL_SELECT_OP_QUEUE_HPP
#define ASIO_DETAIL_SELECT_OP_QUEUE_HPP
#include <map>
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <map>
#include "asio/detail/pop_options.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {
namespace detail {

View File

@ -21,7 +21,10 @@
#include "asio/detail/socket_connector_impl.hpp"
#include "asio/detail/socket_holder.hpp"
#include "asio/detail/socket_ops.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/bind.hpp>
#include "asio/detail/pop_options.hpp"
namespace asio {
namespace detail {

View File

@ -15,6 +15,8 @@
#ifndef ASIO_DETAIL_SELECT_PROVIDER_HPP
#define ASIO_DETAIL_SELECT_PROVIDER_HPP
#include "asio/detail/push_options.hpp"
#include "asio/dgram_socket_service.hpp"
#include "asio/service_provider.hpp"
#include "asio/socket_acceptor_service.hpp"
@ -22,8 +24,6 @@
#include "asio/stream_socket_service.hpp"
#include "asio/detail/selector.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
namespace detail {

View File

@ -13,8 +13,12 @@
//
#include "asio/detail/selector.hpp"
#include "asio/detail/push_options.hpp"
#include <csignal>
#include <boost/bind.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/demuxer.hpp"
#include "asio/detail/socket_types.hpp"

View File

@ -15,14 +15,17 @@
#ifndef ASIO_DETAIL_SELECTOR_HPP
#define ASIO_DETAIL_SELECTOR_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/noncopyable.hpp>
#include <boost/thread.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/demuxer_task.hpp"
#include "asio/detail/select_interrupter.hpp"
#include "asio/detail/select_op_queue.hpp"
#include "asio/detail/push_options.hpp"
namespace asio { class demuxer; }
namespace asio {

View File

@ -13,7 +13,11 @@
//
#include "asio/detail/service_registry.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/throw_exception.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/service_unavailable.hpp"
namespace asio {

View File

@ -15,16 +15,19 @@
#ifndef ASIO_DETAIL_SERVICE_REGISTRY_HPP
#define ASIO_DETAIL_SERVICE_REGISTRY_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <list>
#include <map>
#include <boost/noncopyable.hpp>
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/service_provider.hpp"
#include "asio/service_provider_factory.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
namespace detail {

View File

@ -13,8 +13,11 @@
//
#include "asio/detail/shared_thread_demuxer_provider.hpp"
#include "asio/detail/push_options.hpp"
#include <cassert>
#include <memory>
#include "asio/detail/pop_options.hpp"
namespace asio {
namespace detail {

View File

@ -15,17 +15,20 @@
#ifndef ASIO_DETAIL_SHARED_THREAD_DEMUXER_PROVIDER_HPP
#define ASIO_DETAIL_SHARED_THREAD_DEMUXER_PROVIDER_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <list>
#include <queue>
#include <boost/thread.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context_locker.hpp"
#include "asio/demuxer_service.hpp"
#include "asio/demuxer_task.hpp"
#include "asio/service_provider.hpp"
#include "asio/detail/demuxer_thread_pool.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
namespace detail {

View File

@ -13,7 +13,10 @@
//
#include "asio/detail/socket_connector_impl.hpp"
#include "asio/detail/push_options.hpp"
#include <cassert>
#include "asio/detail/pop_options.hpp"
namespace asio {
namespace detail {

View File

@ -15,12 +15,15 @@
#ifndef ASIO_DETAIL_SOCKET_CONNECTOR_IMPL_HPP
#define ASIO_DETAIL_SOCKET_CONNECTOR_IMPL_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <set>
#include <boost/noncopyable.hpp>
#include <boost/thread.hpp>
#include "asio/detail/socket_types.hpp"
#include "asio/detail/pop_options.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {
namespace detail {

View File

@ -15,10 +15,13 @@
#ifndef ASIO_DETAIL_SOCKET_HOLDER_HPP
#define ASIO_DETAIL_SOCKET_HOLDER_HPP
#include <boost/noncopyable.hpp>
#include "asio/detail/socket_ops.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/noncopyable.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/detail/socket_ops.hpp"
namespace asio {
namespace detail {

View File

@ -15,13 +15,16 @@
#ifndef ASIO_DETAIL_SOCKET_OPS_HPP
#define ASIO_DETAIL_SOCKET_OPS_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <cerrno>
#include "asio/detail/socket_types.hpp"
#if !defined(_WIN32)
#include <sys/ioctl.h>
#endif
#include "asio/detail/pop_options.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {
namespace detail {

View File

@ -15,6 +15,9 @@
#ifndef ASIO_DETAIL_SOCKET_TYPES_HPP
#define ASIO_DETAIL_SOCKET_TYPES_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#if defined(_WIN32)
# define FD_SETSIZE 1024
# include <winsock2.h>
@ -26,8 +29,7 @@
# include <netinet/tcp.h>
# include <arpa/inet.h>
#endif
#include "asio/detail/push_options.hpp"
#include "asio/detail/pop_options.hpp"
namespace asio {
namespace detail {

View File

@ -13,7 +13,11 @@
//
#include "asio/detail/timer_queue_provider.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/bind.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
#include "asio/demuxer.hpp"
#include "asio/service_unavailable.hpp"

View File

@ -15,15 +15,18 @@
#ifndef ASIO_DETAIL_TIMER_QUEUE_PROVIDER_HPP
#define ASIO_DETAIL_TIMER_QUEUE_PROVIDER_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <map>
#include <boost/thread.hpp>
#include <boost/scoped_ptr.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
#include "asio/service_provider.hpp"
#include "asio/timer_queue_service.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
namespace detail {

View File

@ -15,6 +15,8 @@
#ifndef ASIO_DETAIL_WIN_IOCP_PROVIDER_HPP
#define ASIO_DETAIL_WIN_IOCP_PROVIDER_HPP
#include "asio/detail/push_options.hpp"
#if defined(_WIN32) // This provider is only supported on Win32
#include "asio/completion_context_locker.hpp"
@ -24,8 +26,6 @@
#include "asio/stream_socket_service.hpp"
#include "asio/detail/demuxer_thread_pool.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
namespace detail {
@ -151,8 +151,8 @@ private:
} // namespace detail
} // namespace asio
#include "asio/detail/pop_options.hpp"
#endif // defined(_WIN32)
#include "asio/detail/pop_options.hpp"
#endif // ASIO_DETAIL_WIN_IOCP_PROVIDER_HPP

View File

@ -13,8 +13,12 @@
//
#include "asio/dgram_socket.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/throw_exception.hpp>
#include <cassert>
#include "asio/detail/pop_options.hpp"
#include "asio/demuxer.hpp"
#include "asio/dgram_socket_service.hpp"
#include "asio/socket_address.hpp"

View File

@ -15,12 +15,15 @@
#ifndef ASIO_DGRAM_SOCKET_HPP
#define ASIO_DGRAM_SOCKET_HPP
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "asio/completion_context.hpp"
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {

View File

@ -15,12 +15,12 @@
#ifndef ASIO_DGRAM_SOCKET_SERVICE_HPP
#define ASIO_DGRAM_SOCKET_SERVICE_HPP
#include "asio/detail/push_options.hpp"
#include "asio/service.hpp"
#include "asio/service_type_id.hpp"
#include "asio/dgram_socket.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
/// The dgram_socket_service class is a base class for service implementations

View File

@ -13,7 +13,10 @@
//
#include "asio/generic_address.hpp"
#include "asio/detail/push_options.hpp"
#include <string.h>
#include "asio/detail/pop_options.hpp"
namespace asio {

View File

@ -15,10 +15,10 @@
#ifndef ASIO_GENERIC_ADDRESS_HPP
#define ASIO_GENERIC_ADDRESS_HPP
#include "asio/socket_address.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/socket_address.hpp"
namespace asio {
/// The generic_address class may be used to hold any type of socket address.

View File

@ -13,10 +13,13 @@
//
#include "asio/inet_address_v4.hpp"
#include "asio/detail/push_options.hpp"
#if !defined(_WIN32)
#include <netdb.h>
#endif
#include <string.h>
#include "asio/detail/pop_options.hpp"
namespace asio {

View File

@ -15,11 +15,14 @@
#ifndef ASIO_INET_ADDRESS_V4_HPP
#define ASIO_INET_ADDRESS_V4_HPP
#include <string>
#include <boost/integer.hpp>
#include "asio/socket_address.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <string>
#include <boost/integer.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/socket_address.hpp"
namespace asio {

View File

@ -15,10 +15,10 @@
#ifndef ASIO_SERVICE_PROVIDER_HPP
#define ASIO_SERVICE_PROVIDER_HPP
#include "asio/service_type_id.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/service_type_id.hpp"
namespace asio {
class service;

View File

@ -15,10 +15,13 @@
#ifndef ASIO_SERVICE_UNAVAILABLE_HPP
#define ASIO_SERVICE_UNAVAILABLE_HPP
#include <stdexcept>
#include "asio/service_type_id.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <stdexcept>
#include "asio/detail/pop_options.hpp"
#include "asio/service_type_id.hpp"
namespace asio {

View File

@ -13,7 +13,12 @@
//
#include "asio/socket_acceptor.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/throw_exception.hpp>
#include <cassert>
#include "asio/detail/pop_options.hpp"
#include "asio/demuxer.hpp"
#include "asio/socket_acceptor_service.hpp"
#include "asio/socket_address.hpp"

View File

@ -15,14 +15,17 @@
#ifndef ASIO_SOCKET_ACCEPTOR_HPP
#define ASIO_SOCKET_ACCEPTOR_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
#include "asio/stream_socket.hpp"
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
class demuxer;

View File

@ -15,13 +15,13 @@
#ifndef ASIO_SOCKET_ACCEPTOR_SERVICE_HPP
#define ASIO_SOCKET_ACCEPTOR_SERVICE_HPP
#include "asio/detail/push_options.hpp"
#include "asio/service.hpp"
#include "asio/service_type_id.hpp"
#include "asio/socket_acceptor.hpp"
#include "asio/stream_socket.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
/// The socket_acceptor_service class is a base class for service

View File

@ -15,10 +15,10 @@
#ifndef ASIO_SOCKET_ADDRESS_HPP
#define ASIO_SOCKET_ADDRESS_HPP
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {
/// The socket_address class is the base class for all supported types of

View File

@ -13,8 +13,12 @@
//
#include "asio/socket_connector.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/throw_exception.hpp>
#include <cassert>
#include "asio/detail/pop_options.hpp"
#include "asio/demuxer.hpp"
#include "asio/socket_connector_service.hpp"
#include "asio/socket_address.hpp"

View File

@ -15,14 +15,17 @@
#ifndef ASIO_SOCKET_CONNECTOR_HPP
#define ASIO_SOCKET_CONNECTOR_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
#include "asio/stream_socket.hpp"
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
class demuxer;

View File

@ -15,13 +15,13 @@
#ifndef ASIO_SOCKET_CONNECTOR_SERVICE_HPP
#define ASIO_SOCKET_CONNECTOR_SERVICE_HPP
#include "asio/detail/push_options.hpp"
#include "asio/service.hpp"
#include "asio/service_type_id.hpp"
#include "asio/socket_connector.hpp"
#include "asio/stream_socket.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
/// The socket_connector_service class is a base class for service

View File

@ -13,7 +13,6 @@
//
#include "asio/socket_error.hpp"
#include <string>
namespace asio {

View File

@ -15,11 +15,15 @@
#ifndef ASIO_SOCKET_ERROR_HPP
#define ASIO_SOCKET_ERROR_HPP
#include <cerrno>
#include <stdexcept>
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <cerrno>
#include <stdexcept>
#include <string>
#include "asio/detail/pop_options.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {

View File

@ -13,8 +13,12 @@
//
#include "asio/stream_socket.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/throw_exception.hpp>
#include <cassert>
#include "asio/detail/pop_options.hpp"
#include "asio/demuxer.hpp"
#include "asio/socket_error.hpp"
#include "asio/stream_socket_service.hpp"

View File

@ -15,12 +15,15 @@
#ifndef ASIO_STREAM_SOCKET_HPP
#define ASIO_STREAM_SOCKET_HPP
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "asio/completion_context.hpp"
#include "asio/detail/socket_types.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "asio/detail/pop_options.hpp"
#include "asio/completion_context.hpp"
#include "asio/detail/socket_types.hpp"
namespace asio {

View File

@ -15,12 +15,12 @@
#ifndef ASIO_STREAM_SOCKET_SERVICE_HPP
#define ASIO_STREAM_SOCKET_SERVICE_HPP
#include "asio/detail/push_options.hpp"
#include "asio/service.hpp"
#include "asio/service_type_id.hpp"
#include "asio/stream_socket.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
/// The stream_socket_service class is a base class for service implementations

View File

@ -15,12 +15,15 @@
#ifndef ASIO_TIMER_QUEUE_HPP
#define ASIO_TIMER_QUEUE_HPP
#include "asio/detail/push_options.hpp"
#include "asio/detail/push_options.hpp"
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include <boost/thread/xtime.hpp>
#include "asio/completion_context.hpp"
#include "asio/detail/pop_options.hpp"
#include "asio/detail/push_options.hpp"
#include "asio/completion_context.hpp"
namespace asio {

View File

@ -15,12 +15,12 @@
#ifndef ASIO_TIMER_QUEUE_SERVICE_HPP
#define ASIO_TIMER_QUEUE_SERVICE_HPP
#include "asio/detail/push_options.hpp"
#include "asio/service.hpp"
#include "asio/service_type_id.hpp"
#include "asio/timer_queue.hpp"
#include "asio/detail/push_options.hpp"
namespace asio {
/// The timer_queue_service class is a base class for service implementations