File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed
bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/basic
mongocxx/lib/mongocxx/v_noabi/mongocxx/private Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,22 @@ class array : public sub_array {
39
39
// /
40
40
// / Default constructor
41
41
// /
42
- BSONCXX_INLINE array () : sub_array(&_core), _core(true ) {}
42
+ array () : sub_array(&_core), _core(true ) {}
43
+
44
+ // /
45
+ // / Destructor
46
+ // /
47
+ ~array () = default ;
43
48
44
49
// /
45
50
// / Move constructor
46
51
// /
47
- BSONCXX_INLINE array (array&& arr) noexcept : sub_array(&_core), _core(std::move(arr._core)) {}
52
+ array (array&& arr) noexcept : sub_array(&_core), _core(std::move(arr._core)) {}
48
53
49
54
// /
50
55
// / Move assignment operator
51
56
// /
52
- BSONCXX_INLINE array& operator =(array&& arr) noexcept {
57
+ array& operator =(array&& arr) noexcept {
53
58
_core = std::move (arr._core );
54
59
return *this ;
55
60
}
Original file line number Diff line number Diff line change @@ -261,9 +261,24 @@ class index_view::impl {
261
261
class scoped_server_description {
262
262
public:
263
263
explicit scoped_server_description (mongoc_server_description_t * sd) : sd(sd) {}
264
+
264
265
~scoped_server_description () {
265
266
mongoc_server_description_destroy (sd);
266
267
}
268
+
269
+ scoped_server_description (scoped_server_description&& other) : sd(other.sd) {
270
+ other.sd = nullptr ;
271
+ }
272
+
273
+ scoped_server_description& operator =(scoped_server_description&& other) {
274
+ sd = other.sd ;
275
+ other.sd = nullptr ;
276
+ return *this ;
277
+ }
278
+
279
+ scoped_server_description (const scoped_server_description&) = delete ;
280
+ scoped_server_description& operator =(const scoped_server_description&) = delete ;
281
+
267
282
mongoc_server_description_t * sd;
268
283
};
269
284
};
You can’t perform that action at this time.
0 commit comments