mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 14:31:11 +01:00
ircd: These should be rvalue refs.
This commit is contained in:
parent
a4df66788c
commit
c3ceb94478
4 changed files with 4 additions and 4 deletions
|
@ -64,7 +64,7 @@ struct ircd::net::dns::resolver::tag
|
|||
steady_point last {ircd::now<steady_point>()};
|
||||
uint8_t tries {0};
|
||||
|
||||
void set_exception(std::exception_ptr);
|
||||
void set_exception(std::exception_ptr &&);
|
||||
|
||||
tag(const hostport &hp, const flag &flags, callback_many cb_many)
|
||||
:hp{hp}
|
||||
|
|
|
@ -44,7 +44,7 @@ struct ircd::server::tag
|
|||
http::code status {(http::code)0};
|
||||
std::unique_ptr<char[]> cancellation;
|
||||
|
||||
void set_exception(std::exception_ptr);
|
||||
void set_exception(std::exception_ptr &&);
|
||||
template<class... args> void set_exception(args&&...);
|
||||
template<class... args> void set_value(args&&...);
|
||||
|
||||
|
|
|
@ -2610,7 +2610,7 @@ ircd::net::dns::resolver::init_servers()
|
|||
}
|
||||
|
||||
void
|
||||
ircd::net::dns::resolver::tag::set_exception(std::exception_ptr eptr)
|
||||
ircd::net::dns::resolver::tag::set_exception(std::exception_ptr &&eptr)
|
||||
{
|
||||
if(cb_many)
|
||||
cb_many(std::move(eptr), {});
|
||||
|
|
|
@ -2117,7 +2117,7 @@ ircd::server::tag::set_exception(args&&... a)
|
|||
}
|
||||
|
||||
void
|
||||
ircd::server::tag::set_exception(std::exception_ptr eptr)
|
||||
ircd::server::tag::set_exception(std::exception_ptr &&eptr)
|
||||
{
|
||||
if(abandoned())
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue