File tree 2 files changed +8
-4
lines changed 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -221,11 +221,12 @@ class vector : public pmr_vector<Tp> {
221
221
222
222
// Delete all default constructors because they don't require an allocator
223
223
constexpr vector () noexcept (noexcept (allocator_type())) = delete;
224
- constexpr vector (const vector& other) = delete;
225
- constexpr vector (vector&& other) noexcept = delete;
226
224
227
- // Delete non-allocator aware copy and move assign.
225
+ // Delete copy constructors
226
+ constexpr vector (const vector& other) = delete;
228
227
constexpr vector& operator =(const vector& other) = delete ;
228
+
229
+ constexpr vector (vector&& other) noexcept = default;
229
230
constexpr vector& operator =(vector&& other) noexcept = delete ;
230
231
231
232
constexpr explicit vector (const allocator_type& alloc) noexcept
Original file line number Diff line number Diff line change @@ -76,7 +76,10 @@ class RTree {
76
76
~RTree ();
77
77
78
78
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);
80
83
81
84
/* ********************************* */
82
85
/* API */
You can’t perform that action at this time.
0 commit comments