asio: Fix compile error with gcc

This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-06 02:05:01 +09:00
parent 36aae8c310
commit 44c0d32a1b
5 changed files with 18 additions and 8 deletions

View File

@ -27,6 +27,8 @@
#include "nghttp2_config.h"
#include <boost/array.hpp>
#include <nghttp2/asio_http2_client.h>
namespace nghttp2 {

View File

@ -40,9 +40,13 @@ void stream::stream_id(int32_t stream_id) { stream_id_ = stream_id; }
int32_t stream::stream_id() const { return stream_id_; }
request &stream::request() { return request_; }
class request &stream::request() {
return request_;
}
response &stream::response() { return response_; }
class response &stream::response() {
return response_;
}
session_impl *stream::session() const { return sess_; }

View File

@ -47,8 +47,8 @@ public:
void stream_id(int32_t stream_id);
int32_t stream_id() const;
request &request();
response &response();
class request &request();
class response &response();
session_impl *session() const;

View File

@ -40,9 +40,13 @@ stream::stream(http2_handler *h, int32_t stream_id)
int32_t stream::get_stream_id() const { return stream_id_; }
request &stream::request() { return request_; }
class request &stream::request() {
return request_;
}
response &stream::response() { return response_; }
class response &stream::response() {
return response_;
}
http2_handler *stream::handler() const { return handler_; }

View File

@ -40,8 +40,8 @@ public:
stream(http2_handler *h, int32_t stream_id);
int32_t get_stream_id() const;
request &request();
response &response();
class request &request();
class response &response();
http2_handler *handler() const;