Date: Mon, 25 Nov 2024 00:49:26 +0300
Currently `std::initializer_list` stores elements as `const T*`, which
prevents moving them. While this works well for simple types, it can be
inefficient for types that manage resources.
Are there any plans or ongoing discussions about enhancing
`std::initializer_list` to support move semantics?
Also it clashes with uniform initialization, but I don't know if something
can be done about it
prevents moving them. While this works well for simple types, it can be
inefficient for types that manage resources.
Are there any plans or ongoing discussions about enhancing
`std::initializer_list` to support move semantics?
Also it clashes with uniform initialization, but I don't know if something
can be done about it
Received on 2024-11-24 21:49:39