Skip to content

Commit

Permalink
add Buffer move assignment operator
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Oct 24, 2024
1 parent 229456c commit b3d942b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/Buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b3d942b

Please sign in to comment.