[SERVER-13470] Give mongo::Status move semantics when compiling in C++11 mode Created: 03/Apr/14  Updated: 11/Jul/16  Resolved: 07/Apr/14

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.7.0

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: C++11
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

In theory, a moveable Status object would remove a branch when returning Status objects since unlike the copy constructor the move constructor would not need to test for whether the _error field was NULL or not.



 Comments   
Comment by Githook User [ 07/Apr/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-13470 Give Status move semantics in C++11 mode
Branch: master
https://github.com/mongodb/mongo/commit/5f417e02075aa6c5ae80685927cd6fbca4ba6ca2

Generated at Thu Feb 08 03:31:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.