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 {
2222namespace v_noabi {
2323namespace events {
2424
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 ;
2829}
2930
3031topology_description::server_descriptions& topology_description::server_descriptions::operator =(
3132 server_descriptions&& other) noexcept {
32- swap (other);
33+ auto tmp = std::move (other);
34+ swap (tmp);
3335 return *this ;
3436}
3537
You can’t perform that action at this time.
0 commit comments