Bug 2686155: flex_string is missing input_iterator methods
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1009 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
a2e99a55dd
commit
b170379f32
2 changed files with 95 additions and 17 deletions
|
@ -645,16 +645,16 @@ private:
|
|||
}
|
||||
|
||||
template <class InputIterator>
|
||||
void InsertImpl(iterator i1, iterator i2,
|
||||
InputIterator b, InputIterator e, std::input_iterator_tag)
|
||||
void InsertImpl(iterator insertPosition,
|
||||
InputIterator inputBegin, InputIterator inputEnd, std::input_iterator_tag)
|
||||
{
|
||||
flex_string temp(begin(), i1);
|
||||
for (; b != e; ++b)
|
||||
flex_string temporary(begin(), insertPosition);
|
||||
for (; inputBegin != inputEnd; ++inputBegin)
|
||||
{
|
||||
temp.push_back(*b);
|
||||
temporary.push_back(*inputBegin);
|
||||
}
|
||||
temp.append(i2, end());
|
||||
swap(temp);
|
||||
temporary.append(insertPosition, end());
|
||||
swap(temporary);
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue