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.defn,flat.multimap.defn] Deduction guide needs to default Allocator
to be useful LWG3786
#5800
Comments
The affected deduction guides are Lines 14934 to 14937 in bc6d64c
Lines 16039 to 16042 in bc6d64c
In these deduction guides, there's no |
Something is strange here, but the fix doesn't seem to be editorially-obvious. Maybe we want to pass the Allocator parameter to the @jwakely , this looks like a library issue to me. |
Allocator
to be usefulAllocator
to be useful LWG3786
Thanks! |
Status: WP. |
Is this right? What does it mean that the previous template parameter
Compare
is defaulted, butAllocator
isn't, even though both corresponding function parameters are defaulted? Seems like you can't get this to work without defaulting thisAllocator
: https://godbolt.org/z/fYesrsbMz.I think both suggestions fulfill the corresponding Constraints element.
Originally posted by @JohelEGP in #5626 (comment)
See also https://github.com/cplusplus/draft/pull/5626/files#r922820452.
The text was updated successfully, but these errors were encountered: