This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Support allocators with explicit c-tors in vector<bool>
ClosedPublic

Authored by miyuki on Oct 20 2021, 9:21 AM.

Details

Summary

std::vector<bool> rebinds the supplied allocator to construct objects
of type '__storage_type' rather than 'bool'. Allocators are allowed to
use explicit conversion constructors, so care must be taken when
performing conversions.

Diff Detail

Event Timeline

miyuki requested review of this revision.Oct 20 2021, 9:21 AM
miyuki created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2021, 9:21 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Oct 20 2021, 2:13 PM
This revision is now accepted and ready to land.Oct 20 2021, 2:13 PM