Fix a bug in regex_token_iterator's copy constructor. Caught by Bob Wilson.

llvm-svn: 199122
This commit is contained in:
Marshall Clow 2014-01-13 17:47:08 +00:00
parent 3a47244c94
commit 54f6bd59f5
1 changed files with 1 additions and 1 deletions

View File

@ -6288,7 +6288,7 @@ regex_token_iterator<_BidirectionalIterator, _CharT, _Traits>::
__subs_(__x.__subs_)
{
if (__x.__result_ == &__x.__suffix_)
__result_ == &__suffix_;
__result_ = &__suffix_;
else if ( __result_ != nullptr )
__establish_result ();
}