add Buffer move assignment operator
This commit is contained in:
@@ -37,6 +37,8 @@ namespace util {
|
|||||||
|
|
||||||
Buffer(std::nullptr_t) noexcept : ptr(nullptr), length(0) {}
|
Buffer(std::nullptr_t) noexcept : ptr(nullptr), length(0) {}
|
||||||
|
|
||||||
|
Buffer& operator=(Buffer&&) = default;
|
||||||
|
|
||||||
inline bool operator==(std::nullptr_t) const noexcept {
|
inline bool operator==(std::nullptr_t) const noexcept {
|
||||||
return ptr == nullptr;
|
return ptr == nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user