Replying to my own questions.

This use case is not valid from a Standard point of view. So not a bug and no need to deal with that before next stage 1.

The question left is either we want to support it ?

François

On 23/02/23 22:14, François Dumont wrote:
Hi

Based on my work on PR 96088 for std::map I imagine this use case of inserting a range of keys into an associative container. It behaves as operator[] by inserting a default value for each key.

I wonder if the Standard says that it should work. Or maybe we want to support it ?

I haven't checked if it used to work before we introduced the _ConvertToValueType type. I have no old enough gcc to do so.

It is not supported by std::map neither, even without _ConvertToValueType so I guess it was not working for std::unordered_map prior to it.

If it can be considered as a bug I'll create a PR.

François


Reply via email to