mirror of
https://github.com/boostorg/beast.git
synced 2025-08-04 07:14:32 +02:00
Fix compile errors
This commit is contained in:
@@ -91,7 +91,7 @@ struct stream_base
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static constexpr time_point never()
|
static time_point never() noexcept
|
||||||
{
|
{
|
||||||
return (time_point::max)();
|
return (time_point::max)();
|
||||||
}
|
}
|
||||||
|
@@ -152,7 +152,7 @@ class stream
|
|||||||
using time_point = typename
|
using time_point = typename
|
||||||
std::chrono::steady_clock::time_point;
|
std::chrono::steady_clock::time_point;
|
||||||
|
|
||||||
static constexpr time_point never()
|
static time_point never() noexcept
|
||||||
{
|
{
|
||||||
return (time_point::max)();
|
return (time_point::max)();
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,6 @@ struct stream_base
|
|||||||
|
|
||||||
/// Returns the special time_point value meaning "never"
|
/// Returns the special time_point value meaning "never"
|
||||||
static
|
static
|
||||||
constexpr
|
|
||||||
time_point
|
time_point
|
||||||
never() noexcept
|
never() noexcept
|
||||||
{
|
{
|
||||||
@@ -42,7 +41,6 @@ struct stream_base
|
|||||||
|
|
||||||
/// Returns the special duration value meaning "none"
|
/// Returns the special duration value meaning "none"
|
||||||
static
|
static
|
||||||
constexpr
|
|
||||||
duration
|
duration
|
||||||
none() noexcept
|
none() noexcept
|
||||||
{
|
{
|
||||||
|
@@ -155,7 +155,7 @@ public:
|
|||||||
ws_.next_layer().async_connect(ep_,
|
ws_.next_layer().async_connect(ep_,
|
||||||
alloc_.wrap(beast::bind_front_handler(
|
alloc_.wrap(beast::bind_front_handler(
|
||||||
&connection::on_connect,
|
&connection::on_connect,
|
||||||
shared_from_this())));
|
this->shared_from_this())));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -170,7 +170,7 @@ private:
|
|||||||
"/",
|
"/",
|
||||||
alloc_.wrap(beast::bind_front_handler(
|
alloc_.wrap(beast::bind_front_handler(
|
||||||
&connection::on_handshake,
|
&connection::on_handshake,
|
||||||
shared_from_this())));
|
this->shared_from_this())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -191,7 +191,7 @@ private:
|
|||||||
beast::buffers_prefix(dist(rng_), tb_),
|
beast::buffers_prefix(dist(rng_), tb_),
|
||||||
alloc_.wrap(beast::bind_front_handler(
|
alloc_.wrap(beast::bind_front_handler(
|
||||||
&connection::on_write,
|
&connection::on_write,
|
||||||
shared_from_this())));
|
this->shared_from_this())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -206,7 +206,7 @@ private:
|
|||||||
ws_.async_close({},
|
ws_.async_close({},
|
||||||
alloc_.wrap(beast::bind_front_handler(
|
alloc_.wrap(beast::bind_front_handler(
|
||||||
&connection::on_close,
|
&connection::on_close,
|
||||||
shared_from_this())));
|
this->shared_from_this())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -215,7 +215,7 @@ private:
|
|||||||
ws_.async_read(buffer_,
|
ws_.async_read(buffer_,
|
||||||
alloc_.wrap(beast::bind_front_handler(
|
alloc_.wrap(beast::bind_front_handler(
|
||||||
&connection::on_read,
|
&connection::on_read,
|
||||||
shared_from_this())));
|
this->shared_from_this())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user