mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-06 01:06:37 +02:00
Attempt to fix iterator problem detected by VC8.0
[SVN r24677]
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user