From daad20c9d44ee79ca1f605798daa52adedd2fffb Mon Sep 17 00:00:00 2001 From: faluco Date: Tue, 13 Apr 2021 16:14:19 +0200 Subject: [PATCH] Disable copy and move operations for dyn_node_pool. --- lib/src/srslog/bundled/fmt/format.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/srslog/bundled/fmt/format.cc b/lib/src/srslog/bundled/fmt/format.cc index ac61868ae..4864ac26e 100644 --- a/lib/src/srslog/bundled/fmt/format.cc +++ b/lib/src/srslog/bundled/fmt/format.cc @@ -41,6 +41,11 @@ public: } } + dyn_node_pool(const dyn_node_pool&) = delete; + dyn_node_pool(dyn_node_pool&&) = delete; + dyn_node_pool& operator=(dyn_node_pool&&) = delete; + dyn_node_pool& operator=(const dyn_node_pool&) = delete; + void* alloc(std::size_t sz) { assert(sz <= dynamic_arg_list::max_pool_node_size && "Object is too large to fit in the pool");