File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/mongocxx/lib/mongocxx/v_noabi/mongocxx/events Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,16 @@ namespace mongocxx {
22
22
namespace v_noabi {
23
23
namespace events {
24
24
25
- topology_description::server_descriptions::server_descriptions (
26
- server_descriptions&& other) noexcept {
27
- swap (other);
25
+ topology_description::server_descriptions::server_descriptions (server_descriptions&& other) noexcept
26
+ : _container(std::move(other._container)), _sds(other._sds), _size(other._size) {
27
+ other._sds = nullptr ;
28
+ other._size = 0u ;
28
29
}
29
30
30
31
topology_description::server_descriptions& topology_description::server_descriptions::operator =(
31
32
server_descriptions&& other) noexcept {
32
- swap (other);
33
+ auto tmp = std::move (other);
34
+ swap (tmp);
33
35
return *this ;
34
36
}
35
37
You can’t perform that action at this time.
0 commit comments