Fix a bug in regex_token_iterator's copy constructor. Caught by Bob Wilson.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@199122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0efd9dcfa0
commit
72fe0ae7cf
@ -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 ();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user