[SERVER-40357] remove MONGO_DISALLOW_COPYING Created: 27/Mar/19  Updated: 29/Oct/23  Resolved: 28/Mar/19

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

Type: Improvement Priority: Minor - P4
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-04-08
Participants:

 Description   

Pre-11 legacy macro.

Disabling copy ops is more clearly done with =delete directly.



 Comments   
Comment by Githook User [ 28/Mar/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40357 expand all calls to MONGO_DISALLOW_COPYING

produced by:

hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )"
for f in "$hits"; do
sed -i.orig '
s/^( )MONGO_DISALLOW_COPYING((.));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/;
' $f
done
Branch: master
https://github.com/mongodb/mongo/commit/f922827d45ce752e148185dfa3a785f7c9cf29fd

Comment by Githook User [ 28/Mar/19 ]

Author:

{'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}

Message: SERVER-40357 remove MONGO_DISALLOW_COPYING
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/f6850b660bda15f12313d3744b658607a909d626

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