This is an archive of the discontinued LLVM Phabricator instance.

[libc++][spaceship] P1614R2: Removed global `operator!=` from `allocator`
ClosedPublic

Authored by H-G-Hristov on Jun 10 2023, 12:52 AM.

Details

Summary

Implements parts of P1614R2:

  • Removed global operator!= from allocator

Diff Detail

Event Timeline

H-G-Hristov created this revision.Jun 10 2023, 12:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2023, 12:52 AM
Herald added a subscriber: yaxunl. · View Herald Transcript
H-G-Hristov requested review of this revision.Jun 10 2023, 12:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2023, 12:52 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
H-G-Hristov retitled this revision from [libc++][spaceship] P1614R2: Removed global `operator!=` for `allocator` to [libc++][spaceship] P1614R2: Removed global `operator!=` from `allocator`.Jun 10 2023, 2:18 AM
H-G-Hristov edited the summary of this revision. (Show Details)
Mordante requested changes to this revision.Jun 10 2023, 6:07 AM
Mordante added a subscriber: Mordante.

In general LGTM, but I would like to land D152297 first and directly update the status page.

This revision now requires changes to proceed.Jun 10 2023, 6:07 AM

Addressed comments

In general LGTM, but I would like to land D152297 first and directly update the status page.

Thank you for the review!

libcxx/include/__memory/allocator.h
268

constexpr since C++20, but removed in C++20. Should I remove the macro?

Mordante accepted this revision.Jun 11 2023, 4:58 AM

Thanks, LGTM after applying your own suggestion.

libcxx/include/__memory/allocator.h
268

Good point, yes please do. We're done the same for the relational operator.

This revision is now accepted and ready to land.Jun 11 2023, 4:58 AM

Removed macro