alloc/chunked: add default copy and move operators

This addresses some deprecation warnings under clang.
This commit is contained in:
Danny Robson 2024-08-21 09:44:36 +10:00
parent 8128632f1a
commit 7dec7b63f3

View File

@ -27,6 +27,12 @@ namespace cruft::alloc {
public: public:
static constexpr std::size_t DEFAULT_CHUNK_SIZE = 4096; 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); explicit chunked (std::size_t initial_size);
chunked (std::size_t initial_size, std::size_t chunk_size); chunked (std::size_t initial_size, std::size_t chunk_size);
~chunked () noexcept; ~chunked () noexcept;