Attempt to fix iterator problem detected by VC8.0

[SVN r24677]
This commit is contained in:
Pavol Droba
2004-08-23 18:46:28 +00:00
parent a23ae6316f
commit 792b4eae88

View File

@ -123,9 +123,18 @@ namespace boost {
ForwardIteratorT InsertIt,
ForwardIteratorT SegmentBegin,
ForwardIteratorT SegmentEnd )
{
if(InsertIt!=SegmentEnd)
{
// Call replace to do the job
replace( Input, InsertIt, SegmentBegin, Storage );
}
else
{
// Call insert to do the job
insert( Input, InsertIt, Storage );
}
// Empty the storage
Storage.clear();
// Iterators were not changed, simply return the end of segment