mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-10 03:06:33 +02:00
Attempt to fix "Empty sequence after erase problem" reported by vc8.0
[SVN r24835]
This commit is contained in:
@ -109,9 +109,16 @@ namespace boost {
|
|||||||
{
|
{
|
||||||
BOOST_STRING_TYPENAME InputT::iterator At=Input.erase( From, To );
|
BOOST_STRING_TYPENAME InputT::iterator At=Input.erase( From, To );
|
||||||
if ( Begin!=End )
|
if ( Begin!=End )
|
||||||
|
{
|
||||||
|
if(!Input.empty())
|
||||||
{
|
{
|
||||||
Input.insert( At, Begin, End );
|
Input.insert( At, Begin, End );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Input.insert( Input.begin(), Begin, End );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user