A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cplusplus/draft/issues/5800 below:

[flat.map.defn,flat.multimap.defn] Deduction guide needs to default `Allocator` to be useful LWG3786 · Issue #5800 · cplusplus/draft · GitHub

Is this right? What does it mean that the previous template parameter Compare is defaulted, but Allocator isn't, even though both corresponding function parameters are defaulted? Seems like you can't get this to work without defaulting this Allocator: https://godbolt.org/z/fYesrsbMz.

           class Allocator = allocator<ranges::range_value_t<R>>>
           class Allocator = allocator<@\exposid{range-mapped-type}@<R>>>

I think both suggestions fulfill the corresponding Constraints element.

           class Allocator = allocator<void>>

Originally posted by @JohelEGP in #5626 (comment)

See also https://github.com/cplusplus/draft/pull/5626/files#r922820452.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4