From 556d73d96edc370cb80b34460272acc1192d7f7e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 20 Jul 2019 15:08:25 -0700 Subject: [PATCH] ircd::db::database::env::state: Restrict object semantics. --- include/ircd/db/database/env/state.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ircd/db/database/env/state.h b/include/ircd/db/database/env/state.h index 052f3c624..6bd37a770 100644 --- a/include/ircd/db/database/env/state.h +++ b/include/ircd/db/database/env/state.h @@ -25,6 +25,8 @@ struct ircd::db::database::env::state std::array, POOLS> pool; state(database *const &); + state(state &&) = delete; + state(const state &) = delete; ~state() noexcept; }; @@ -53,6 +55,8 @@ struct ircd::db::database::env::state::pool void join(); pool(database &, const Priority &); + pool(pool &&) = delete; + pool(const pool &) = delete; ~pool() noexcept; };