mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-06 09:16:33 +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 InsertIt,
|
||||||
ForwardIteratorT SegmentBegin,
|
ForwardIteratorT SegmentBegin,
|
||||||
ForwardIteratorT SegmentEnd )
|
ForwardIteratorT SegmentEnd )
|
||||||
|
|
||||||
|
{
|
||||||
|
if(InsertIt!=SegmentEnd)
|
||||||
{
|
{
|
||||||
// Call replace to do the job
|
// Call replace to do the job
|
||||||
replace( Input, InsertIt, SegmentBegin, Storage );
|
replace( Input, InsertIt, SegmentBegin, Storage );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Call insert to do the job
|
||||||
|
insert( Input, InsertIt, Storage );
|
||||||
|
}
|
||||||
// Empty the storage
|
// Empty the storage
|
||||||
Storage.clear();
|
Storage.clear();
|
||||||
// Iterators were not changed, simply return the end of segment
|
// Iterators were not changed, simply return the end of segment
|
||||||
|
Reference in New Issue
Block a user