This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove unnecessary static assertion in allocate_shared
ClosedPublic

Authored by ldionne on Dec 14 2020, 2:11 PM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Commits
rGb3d1d1f4fff8: [libc++] Remove unnecessary static assertion in allocate_shared
Summary

Checking that T is constructible from Args... is technically not
required by the Standard, although any implementation will obviously
error out if that's not satisfied. However, this check is incompatible
with using Allocator construction in the control block (upcoming change
as part of implementing P0674), so I'm removing it now to reduce the
upcoming diff as much as possible.

Diff Detail

Event Timeline

ldionne created this revision.Dec 14 2020, 2:11 PM
ldionne requested review of this revision.Dec 14 2020, 2:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2020, 2:11 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision as: Restricted Project.Dec 14 2020, 2:47 PM
This revision was not accepted when it landed; it landed in state Needs Review.Dec 14 2020, 2:48 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
libcxx/include/memory