From d25bc6c5491b26b477768899c81638c6a5f79f7d Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Thu, 18 Sep 2025 14:58:08 -0500 Subject: [PATCH] Fix documentation of v1::document::value post-move state --- src/bsoncxx/include/bsoncxx/v1/document/value.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bsoncxx/include/bsoncxx/v1/document/value.hpp b/src/bsoncxx/include/bsoncxx/v1/document/value.hpp index cdb5e4d048..fd086fc1d1 100644 --- a/src/bsoncxx/include/bsoncxx/v1/document/value.hpp +++ b/src/bsoncxx/include/bsoncxx/v1/document/value.hpp @@ -129,7 +129,8 @@ class value { /// Move construction. /// /// @par Postconditions: - /// - `other` is equivalent to a default-initialized value. + /// - `this->data() == nullptr` + /// - `this->get_deleter()` is in a valid but unspecified state. /// value(value&& other) noexcept = default; @@ -137,7 +138,8 @@ class value { /// Move assignment. /// /// @par Postconditions: - /// - `other` is equivalent to a default-initialized value. + /// - `this->data() == nullptr` + /// - `this->get_deleter()` is in a valid but unspecified state. /// value& operator=(value&& other) noexcept = default;