From fde100bb93800e1989b291602e4f4a2737c47408 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 12 May 2020 18:51:21 -0700 Subject: [PATCH] ircd::db: Move callback into handler; fixes errors from reference member. --- ircd/db.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircd/db.h b/ircd/db.h index 9fff1829e..928d84348 100644 --- a/ircd/db.h +++ b/ircd/db.h @@ -161,7 +161,7 @@ struct ircd::db::txn::handler using Slice = rocksdb::Slice; const database &d; - const std::function &cb; + std::function cb; bool _continue {true}; Status callback(const delta &) noexcept; @@ -180,8 +180,8 @@ struct ircd::db::txn::handler Status PutCF(const uint32_t cfid, const Slice &, const Slice &) noexcept override; handler(const database &d, - const std::function &cb) + std::function cb) :d{d} - ,cb{cb} + ,cb{std::move(cb)} {} };