From b3d942b76cf7e21d0224603cd8614f63f7e04180 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 24 Oct 2024 17:40:04 +0300 Subject: [PATCH] add Buffer move assignment operator --- src/util/Buffer.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/Buffer.hpp b/src/util/Buffer.hpp index f7bf3ff6..403fa4d8 100644 --- a/src/util/Buffer.hpp +++ b/src/util/Buffer.hpp @@ -37,6 +37,8 @@ namespace util { Buffer(std::nullptr_t) noexcept : ptr(nullptr), length(0) {} + Buffer& operator=(Buffer&&) = default; + inline bool operator==(std::nullptr_t) const noexcept { return ptr == nullptr; }