Attempt to fix "Empty sequence after erase problem" reported by vc8.0

[SVN r24835]
This commit is contained in:
Pavol Droba
2004-08-31 07:43:02 +00:00
parent fa09dddc75
commit 108365abe7

View File

@ -110,7 +110,14 @@ namespace boost {
BOOST_STRING_TYPENAME InputT::iterator At=Input.erase( From, To );
if ( Begin!=End )
{
Input.insert( At, Begin, End );
if(!Input.empty())
{
Input.insert( At, Begin, End );
}
else
{
Input.insert( Input.begin(), Begin, End );
}
}
}
};