[SERVER-26025] Smart pointer with clone on copy Created: 08/Sep/16  Updated: 06/Dec/17  Resolved: 30/Mar/17

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

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: ADAM Martin (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-28428 clonable_ptr_test.cpp fails to compil... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-03-06, Platforms 2017-04-17
Participants:

 Description   

When a type is always held by interface pointer, but has a clone method, it would be a nice improvement to provide a smart pointer with clone on copy.

This would allow users embedding types like these to avoid writing custom life cycle methods



 Comments   
Comment by Githook User [ 30/Mar/17 ]

Author:

{u'username': u'adamlsd', u'name': u'ADAM David Alan Martin', u'email': u'adam.martin@10gen.com'}

Message: SERVER-26025 Smart pointer with clone on copy

This clonable pointer works like a unique_ptr, but upon
copy it invokes a customizable cloning function. A `clone`
member function is used by default. There exist several
customization points.
Branch: master
https://github.com/mongodb/mongo/commit/c20914d6739c8474e80646e461b8f5121f9758cf

Comment by Githook User [ 22/Mar/17 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: Revert "SERVER-26025 Smart pointer with clone on copy"

This reverts commit 5d141bce7219aeb34d3de8cfae68d643bf9a3a16.
Branch: master
https://github.com/mongodb/mongo/commit/7b4770c1dbbc2a264a10f4fcfc87025ce832b680

Comment by Githook User [ 22/Mar/17 ]

Author:

{u'username': u'adamlsd', u'name': u'ADAM David Alan Martin', u'email': u'adam.martin@10gen.com'}

Message: SERVER-26025 Smart pointer with clone on copy

This clonable pointer works like a unique_ptr, but upon
copy it invokes a customizable cloning function. A `clone`
member function is used by default. There exist several
customization points.
Branch: master
https://github.com/mongodb/mongo/commit/5d141bce7219aeb34d3de8cfae68d643bf9a3a16

Generated at Thu Feb 08 04:10:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.