[SERVER-17308] Replace boost::scoped_ptr with std::unique_ptr Created: 17/Feb/15  Updated: 05/Feb/16  Resolved: 11/Jun/15

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

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

Backwards Compatibility: Fully Compatible
Sprint: Platform 5 06/26/16
Participants:

 Description   

Now that we have C++11, we can use the more general purpose std::unique_ptr instead of boost::scoped_ptr. The same is true for scoped_array.



 Comments   
Comment by Githook User [ 19/Jun/15 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-17308 Remove duplicate std::unique_ptr using-declarations
Branch: master
https://github.com/mongodb/mongo/commit/b5e9986cfa60eddb995acdd926bdefc513fe2735

Comment by Githook User [ 11/Jun/15 ]

Author:

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

Message: SERVER-17308 Replace boost::scoped_array<T> with std::unique_ptr<T[]>
Branch: master
https://github.com/mongodb/mongo/commit/1360f243ee7fa662c0ded25a9bc479aa47388446

Comment by Githook User [ 11/Jun/15 ]

Author:

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

Message: SERVER-17308 Replace boost::scoped_ptr<T> with std::unique_ptr<T>
Branch: master
https://github.com/mongodb/mongo/commit/d7d1fdb75966c684e9a42150e6e9b69c4a10ee08

Comment by Githook User [ 11/Jun/15 ]

Author:

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

Message: SERVER-17308 Use std::unique_ptr instead of boost::scoped_array
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/a9c556fb3b1f1bcc108e06131b53f7a887e1a05c

Comment by Githook User [ 11/Jun/15 ]

Author:

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

Message: SERVER-17308 Use std::unique_ptr instead of boost::scoped_ptr
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/84644ee4d41ef921a2aad0674638efcc6daf4e0d

Comment by Andrew Morrow (Inactive) [ 17/Feb/15 ]

Note that this also applies to boost::scoped_array<T> which should be re-written to std::unique_ptr<T[]>

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