Skip to content

Commit 1cfd77a

Browse files
committed
Moving some includes around for quicker compile-times.
1 parent f1f322e commit 1cfd77a

File tree

6 files changed

+28
-11
lines changed

6 files changed

+28
-11
lines changed

boost/network/protocol/http/client/base.hpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@
99

1010
#include <boost/function.hpp>
1111
#include <boost/range/iterator_range.hpp>
12-
#include <boost/asio/io_service.hpp>
13-
#include <boost/network/protocol/http/response.hpp>
14-
#include <boost/network/protocol/http/request.hpp>
12+
13+
namespace boost { namespace asio {
14+
15+
class io_service;
16+
17+
} // namespace asio
18+
19+
} // namespace boost
1520

1621
namespace boost { namespace network { namespace http {
1722

1823
struct client_base_pimpl;
24+
struct request;
25+
struct response;
1926

2027
class request_options;
2128

boost/network/protocol/http/client/client_connection.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,4 @@ struct client_connection {
3838

3939
} /* boost */
4040

41-
#ifdef BOOST_NETWORK_NO_LIB
42-
#include <boost/network/protocol/http/client/client_connection.ipp>
43-
#endif
44-
4541
#endif /* BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_CLIENT_CONNECTION_HPP_20111103 */

boost/network/protocol/http/client/connection/normal_delegate.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99

1010
#include <boost/network/protocol/http/client/connection/connection_delegate.hpp>
1111
#include <boost/scoped_ptr.hpp>
12-
#include <boost/asio/placeholders.hpp>
12+
13+
namespace boost { namespace asio {
14+
15+
class io_service;
16+
17+
} // namespace asio
18+
19+
} // namespace boost
1320

1421
namespace boost { namespace network { namespace http {
1522

boost/network/protocol/http/client/connection/resolver_delegate.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// http://www.boost.org/LICENSE_1_0.txt)
99

1010
#include <utility>
11-
#include <boost/function.hpp>
1211
#include <boost/asio/ip/udp.hpp>
12+
#include <boost/function.hpp>
1313

1414
namespace boost { namespace network { namespace http {
1515

boost/network/protocol/http/client/connection/ssl_delegate.hpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10-
#include <boost/asio/io_service.hpp>
1110
#include <boost/asio/ssl.hpp>
1211
#include <boost/network/protocol/http/client/connection/connection_delegate.hpp>
1312
#include <boost/network/protocol/http/client/options.hpp>
14-
#include <boost/optional.hpp>
1513
#include <boost/enable_shared_from_this.hpp>
1614

15+
namespace boost { namespace asio {
16+
17+
class io_service;
18+
19+
} // namespace asio
20+
21+
} // namespace boost
22+
1723
namespace boost { namespace network { namespace http {
1824

1925
struct ssl_delegate : connection_delegate, enable_shared_from_this<ssl_delegate> {

boost/network/protocol/http/client/connection/ssl_delegate.ipp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <boost/network/protocol/http/client/options.hpp>
1111
#include <boost/network/protocol/http/client/connection/ssl_delegate.hpp>
12+
#include <boost/asio/placeholders.hpp>
1213
#include <boost/bind.hpp>
1314
#include <boost/network/detail/debug.hpp>
1415

0 commit comments

Comments
 (0)