Re: [Development] Rvalue pinning in Qt

2022-06-20 Thread Rafael Roquetto
Hi, On 6/21/22 11:26, Giuseppe D'Angelo via Development wrote: Hi, On 20/06/2022 17:39, Thiago Macieira wrote: On Monday, 20 June 2022 07:46:57 PDT Giuseppe D'Angelo via Development wrote: A fancy name for: "if a function/class is operating on a rvalue, should it store a copy of it in order

Re: [Development] Rvalue pinning in Qt

2022-06-20 Thread Giuseppe D'Angelo via Development
Hi, On 20/06/2022 17:39, Thiago Macieira wrote: On Monday, 20 June 2022 07:46:57 PDT Giuseppe D'Angelo via Development wrote: A fancy name for: "if a function/class is operating on a rvalue, should it store a copy of it in order to keep it alive?". Consider In other words, remove the rvalue

Re: [Development] Rvalue pinning in Qt

2022-06-20 Thread Thiago Macieira
On Monday, 20 June 2022 07:46:57 PDT Giuseppe D'Angelo via Development wrote: > A fancy name for: "if a function/class is operating on a rvalue, should > it store a copy of it in order to keep it alive?". Consider In other words, remove the rvalue reference and store a copy from the const- lvalue

[Development] Rvalue pinning in Qt

2022-06-20 Thread Giuseppe D'Angelo via Development
Hello, In the discussion for QTBUG-103940 it has been pointed out that we did not have a formal discussion regarding rvalue pinning in Qt facilities. We are actually inconsistent in its support, as we do use it in some places and do not use it elsewhere.