Re: [PATCH] Use move-aware auto_vec in map

2024-06-28 Thread Jørgen Kvalsvik
On 6/28/24 13:55, Richard Biener wrote: On Fri, Jun 28, 2024 at 8:43 AM Jørgen Kvalsvik wrote: Using auto_vec rather than vec for means the vectors are release automatically upon return, to stop the leak. The problem seems is that auto_vec is not really move-aware, only the specialization is.

Re: [PATCH] Use move-aware auto_vec in map

2024-06-28 Thread Richard Biener
On Fri, Jun 28, 2024 at 8:43 AM Jørgen Kvalsvik wrote: > > Using auto_vec rather than vec for means the vectors are release > automatically upon return, to stop the leak. The problem seems is that > auto_vec is not really move-aware, only the specialization > is. Indeed. > This is actually Jan'