This is an archive of the discontinued LLVM Phabricator instance.

allocator<const T> is ill-formed
AbandonedPublic

Authored by fsb4000 on May 12 2022, 8:54 PM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

I noticed that MS STL and libstdc++ already forbid this, so I decided do the same for libc++.

https://gcc.godbolt.org/z/3WsT4j3c1

Diff Detail

Event Timeline

fsb4000 created this revision.May 12 2022, 8:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2022, 8:54 PM
fsb4000 requested review of this revision.May 12 2022, 8:54 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptMay 12 2022, 8:54 PM
fsb4000 abandoned this revision.May 12 2022, 10:27 PM

Yes, we are still working with trying to ship that without breaking too many users :)