From 7dec7b63f32dfd799a621ed361cede28f9000063 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 21 Aug 2024 09:44:36 +1000 Subject: [PATCH] alloc/chunked: add default copy and move operators This addresses some deprecation warnings under clang. --- cruft/util/alloc/chunked.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cruft/util/alloc/chunked.hpp b/cruft/util/alloc/chunked.hpp index 0c9daba0..65427a75 100644 --- a/cruft/util/alloc/chunked.hpp +++ b/cruft/util/alloc/chunked.hpp @@ -27,6 +27,12 @@ namespace cruft::alloc { public: static constexpr std::size_t DEFAULT_CHUNK_SIZE = 4096; + chunked (chunked const&) = default; + chunked& operator= (chunked const&) = default; + + chunked (chunked&&) noexcept = default; + chunked& operator= (chunked&&) noexcept = default; + explicit chunked (std::size_t initial_size); chunked (std::size_t initial_size, std::size_t chunk_size); ~chunked () noexcept;