Hi Rossi, That’s a good catch! I _think_ the compiler will automatically emit the move because it sees we’re copying from an object that’ll never be used again [1], but adding the std::move would be good just to remove any ambiguity. Go ahead and make the PR! Sasha 13 апр. 2023 г., в 10:17, Ruoxi Sun <zanmato1...@gmail.com> написал(а):
|
- Probably an unnecessary copy when outputting join result? Ruoxi Sun
- Re: Probably an unnecessary copy when outputting joi... Sasha Krassovsky
- Re: Probably an unnecessary copy when outputting... Ruoxi Sun
- Re: Probably an unnecessary copy when output... Sasha Krassovsky
- Re: Probably an unnecessary copy when ou... Ruoxi Sun
- Re: Probably an unnecessary copy when ou... Sutou Kouhei
- RE: Probably an unnecessary copy wh... Taeyun Kim
- RE: Probably an unnecessary cop... Taeyun Kim
- Re: Probably an unnecessary copy wh... Ruoxi Sun