Skip to content

Commit b224074

Browse files
authored
Fix documentation of v1::document::value post-move state (#1465)
1 parent 91b9c64 commit b224074

File tree

1 file changed

+4
-2
lines changed
  • src/bsoncxx/include/bsoncxx/v1/document

1 file changed

+4
-2
lines changed

src/bsoncxx/include/bsoncxx/v1/document/value.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,17 @@ class value {
129129
/// Move construction.
130130
///
131131
/// @par Postconditions:
132-
/// - `other` is equivalent to a default-initialized value.
132+
/// - `this->data() == nullptr`
133+
/// - `this->get_deleter()` is in a valid but unspecified state.
133134
///
134135
value(value&& other) noexcept = default;
135136

136137
///
137138
/// Move assignment.
138139
///
139140
/// @par Postconditions:
140-
/// - `other` is equivalent to a default-initialized value.
141+
/// - `this->data() == nullptr`
142+
/// - `this->get_deleter()` is in a valid but unspecified state.
141143
///
142144
value& operator=(value&& other) noexcept = default;
143145

0 commit comments

Comments
 (0)