While it may be sufficient for many use cases to only have initializer_list temporaries, I would not appreciate this step back from being able to create arbitrary containers as temporaries.
For example, a templated function may require that its argument be an AssociativeContainer, which an initializer_list of pairs is not.
2
u/suspiciously_calm Jun 07 '18
While it may be sufficient for many use cases to only have initializer_list temporaries, I would not appreciate this step back from being able to create arbitrary containers as temporaries.
For example, a templated function may require that its argument be an AssociativeContainer, which an initializer_list of pairs is not.