From bc655807d4f4cf3deddfadbd7f04a25445ff5f6b Mon Sep 17 00:00:00 2001 From: GagaLP Date: Thu, 28 May 2026 14:55:16 +0200 Subject: [PATCH] Fix undefined buffer_snapshot move assignment --- CHANGELOG.md | 7 +++++++ include/fence.h | 1 + 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 950892e64..3c92fcdae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [WIP] + +This release is WIP + +### Fixed +- Fix a missing return statement for the `buffer_snapshot` move assignment operator (#335) + ## [0.7.0] - 2025-08-18 This release includes changes that may require adjustments when upgrading: diff --git a/include/fence.h b/include/fence.h index 9c745a32e..33dc12241 100644 --- a/include/fence.h +++ b/include/fence.h @@ -36,6 +36,7 @@ class buffer_snapshot { buffer_snapshot& operator=(buffer_snapshot&& other) noexcept { m_subrange = other.m_subrange, other.m_subrange = {}; m_data = std::move(other.m_data); + return *this; } id get_offset() const { return m_subrange.offset; }