0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

ircd: These should be rvalue refs.

This commit is contained in:
Jason Volk 2018-01-30 23:13:27 -08:00
parent a4df66788c
commit c3ceb94478
4 changed files with 4 additions and 4 deletions

View file

@ -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}

View file

@ -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&&...);

View file

@ -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), {});

View file

@ -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;