D11781: Introduce generic Output class
Vlad Zagorodniy <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
zzag added inline comments.
INLINE COMMENTS
> anthonyfieroni wrote in platform.h:74
> 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.
std::copy(other.constBegin(), other.constEnd(), std::back_inserter(*this));
I don't see anything wrong with this.
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