Skip to content

Commit eae03a6

Browse files
committed
Restore some deleted move constructors.
1 parent c5d8c38 commit eae03a6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tiledb/common/pmr.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,12 @@ class vector : public pmr_vector<Tp> {
221221

222222
// Delete all default constructors because they don't require an allocator
223223
constexpr vector() noexcept(noexcept(allocator_type())) = delete;
224-
constexpr vector(const vector& other) = delete;
225-
constexpr vector(vector&& other) noexcept = delete;
226224

227-
// Delete non-allocator aware copy and move assign.
225+
// Delete copy constructors
226+
constexpr vector(const vector& other) = delete;
228227
constexpr vector& operator=(const vector& other) = delete;
228+
229+
constexpr vector(vector&& other) noexcept = default;
229230
constexpr vector& operator=(vector&& other) noexcept = delete;
230231

231232
constexpr explicit vector(const allocator_type& alloc) noexcept

tiledb/sm/rtree/rtree.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ class RTree {
7676
~RTree();
7777

7878
DISABLE_COPY_AND_COPY_ASSIGN(RTree);
79-
DISABLE_MOVE_AND_MOVE_ASSIGN(RTree);
79+
80+
RTree(RTree&&) = default;
81+
RTree& operator=(RTree&&) = default;
82+
// DISABLE_MOVE_AND_MOVE_ASSIGN(RTree);
8083

8184
/* ********************************* */
8285
/* API */

0 commit comments

Comments
 (0)