Use bulk vector::insert rather than back_inserter

This commit is contained in:
Mickey Rose 2017-03-15 13:38:19 +01:00 committed by Phil Nash
parent 08b597b3e2
commit 4dc06bdb70
2 changed files with 4 additions and 6 deletions

View file

@ -10,7 +10,6 @@
#include "catch_context.h"
#include <iterator>
#include <vector>
#include <string>
#include <stdlib.h>
@ -124,7 +123,7 @@ public:
private:
void move( CompositeGenerator& other ) {
std::copy( other.m_composed.begin(), other.m_composed.end(), std::back_inserter( m_composed ) );
m_composed.insert( m_composed.end(), other.m_composed.begin(), other.m_composed.end() );
m_totalSize += other.m_totalSize;
other.m_composed.clear();
}