From 3ffb91d0fd0e10c06b6b0b7b4fb93d905d970f6e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 21 Oct 2018 01:08:57 -0700 Subject: [PATCH] ircd::ctx: Deinline to_asio continuation ctor. --- include/ircd/ctx/continuation.h | 8 ++------ ircd/ctx.cc | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/ircd/ctx/continuation.h b/include/ircd/ctx/continuation.h index 6a62546df..ac0c19f7d 100644 --- a/include/ircd/ctx/continuation.h +++ b/include/ircd/ctx/continuation.h @@ -74,10 +74,6 @@ struct ircd::ctx::to_asio void interrupted(ctx *const &) noexcept final override; - to_asio(const function &handler = {}); + to_asio(function handler); + to_asio() = default; }; - -inline -ircd::ctx::to_asio::to_asio(const function &handler) -:handler{handler} -{} diff --git a/ircd/ctx.cc b/ircd/ctx.cc index 477857ca6..50f108795 100644 --- a/ircd/ctx.cc +++ b/ircd/ctx.cc @@ -818,6 +818,10 @@ const // to_asio // +ircd::ctx::to_asio::to_asio(function handler) +:handler{std::move(handler)} +{} + void ircd::ctx::to_asio::interrupted(ctx *const &interruptor) noexcept