D11781: Introduce generic Output class
Anthony Fieroni <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
anthonyfieroni added inline comments.
INLINE COMMENTS
> zzag wrote in platform.h:74
> Could you please explain why? (I don't see any reference on that page why we have to resize vectors before copying)
Sure it has:
template<class InputIt, class OutputIt>
OutputIt copy(InputIt first, InputIt last,
OutputIt d_first)
{
while (first != last) {
*d_first++ = *first++;
}
return d_first;
}
There is no back_inserter here and never have., you can try it on online compiler.
REPOSITORY
R108 KWin
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D11781
To: romangg, #kwin, davidedmundson
Cc: anthonyfieroni, graesslin, davidedmundson, zzag, kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart