Skip to content

Commit 01b1e9d

Browse files
committed
Fix compile errors.
1 parent 96c5fd5 commit 01b1e9d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tiledb/sm/query/validity_vector.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#define TILEDB_VALIDITY_VECTOR_H
3535

3636
#include <cstdint>
37+
#include <utility>
3738
#include <vector>
3839

3940
#include "tiledb/common/macros.h"
@@ -66,9 +67,9 @@ class ValidityVector {
6667
}
6768

6869
/** Move constructor. */
69-
ValidityVector(ValidityVector&& rhs) {
70-
std::swap(buffer_, rhs.buffer_);
71-
std::swap(buffer_size_, rhs.buffer_size_);
70+
ValidityVector(ValidityVector&& rhs)
71+
: buffer_(std::exchange(rhs.buffer_, nullptr))
72+
, buffer_size_(std::exchange(rhs.buffer_size_, nullptr)) {
7273
}
7374

7475
/** Destructor. */

0 commit comments

Comments
 (0)