[CXX-989] Simplify bsoncxx::document::value::release() Created: 10/Aug/16  Updated: 19/Sep/16  Resolved: 18/Aug/16

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.0.2

Type: Task Priority: Major - P3
Reporter: David Golden Assignee: David Golden
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The current code creates and returns a temporary and has a superfluous release call. It can be simplified to:

return std::move(_data);



 Comments   
Comment by Githook User [ 18/Aug/16 ]

Author:

{u'username': u'xdg', u'name': u'David Golden', u'email': u'xdg@xdg.me'}

Message: CXX-989 Simplify bsoncxx::document::value::release
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/b85da060abee99a61aeacb513e1a5bbbcdeb8ab0

Comment by David Golden [ 11/Aug/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/516

Generated at Wed Feb 07 22:01:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.