Bugfix - clone last entry, not first

This commit is contained in:
King_DuckZ 2020-04-02 19:47:28 +02:00
parent 9cd2608406
commit d64a4af105

View file

@ -32,6 +32,7 @@
#include <list>
#include <functional>
#include <algorithm>
#include <cassert>
namespace duck { namespace sl {
#if defined(APPLY_VERBOSE)
@ -122,7 +123,7 @@ namespace duck { namespace sl {
std::fill_n(
std::back_inserter(parOut),
std::max(m_expected_size, parOut.size()) - parOut.size(),
parOut.front()
parOut.back()
);
}
m_retval = std::move(parOut);