New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flat.map][flat.multimap] Exposition-only formatting for c
, comp
, compare
, and key-equiv
#6404
base: main
Are you sure you want to change the base?
Conversation
43d1ff9
to
18cb694
Compare
Thank you, this would be quite nice to land. @Dani-Hub, @CaseyCarter, would you perhaps be able to lend another pair of eyes? |
@frederick-vs-ja Could you perhaps retrigger the precommit checks so we can get a downloadable PDF? |
18cb694
to
dfdd704
Compare
I would happily do so, but I'm away during from an 30 minutes from now until Tuesday and I'm unable to do that right now. |
I've rebased and force-pushed, not sure whether this is sufficent... |
The changes look good to me, but I'd like to point out that similar fixes in e.g. for |
@Dani-Hub Thanks! Yes, good point, we should fix those cases, too. |
Co-authored-by: Johel Ernesto Guerrero Peña <johelegp@gmail.com>
dfdd704
to
de81239
Compare
Also changes
key_equiv
tokey-equiv
.I think it's OK to keep the member
comp
ofkey_equiv
not marked\exposid
, since the identifiercomp
is already reserved bypriority_queue::comp
. Implementations can use the namecomp
as-is or use another name.key_equiv
andvalue_compare
's exposition-only constructors are less than ideal to me. But I think they should be handled in an LWG issue because additional copy of comparator seems to be observable. Edit: now this is LWG3959.Follows up #5914. Fixes #5812.