Bugfix - clone last entry, not first
This commit is contained in:
parent
9cd2608406
commit
d64a4af105
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue