[SERVER-18007] StatusWith should work with non-default constructible T Created: 13/Apr/15  Updated: 19/Sep/15  Resolved: 04/Jun/15

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

Type: Improvement Priority: Major - P3
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-18695 ElectionWinnerDeclarer::Algorithm::pr... Closed
depends on SERVER-18737 Balancer::run can call getValue() on ... Closed
depends on SERVER-18738 FindAndModifyCommand::run can create ... Closed
depends on SERVER-18764 Only use elapsedMillis when command s... Closed
is depended on by SERVER-18782 rename StatusWith to ErrorOr Closed
Backwards Compatibility: Fully Compatible
Sprint: Platform 3 05/15/15, Platform 4 06/05/15
Participants:

 Description   

This has come up a few times in recent code reviews.

According to jason.carey this is best accomplished using std::aligned_storage



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

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-18007 support non-default constructible types in StatusWith
Branch: master
https://github.com/mongodb/mongo/commit/b3d48bd2c0ebba67f32aca2679077543378b20ab

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