Created on 2007-02-26.00:00:00 last changed 179 months ago
Rationale:
Applied to working paper while issue was still in New status.
Proposed resolution:
In [re.alg.search]/5 replace all three occurences of param "iterator" with "BidirectionalIterator"
template <classiteratorBidirectionalIterator, class charT, class traits> bool regex_search(iteratorBidirectionalIterator first,iteratorBidirectionalIterator last, const basic_regex<charT, traits>& e, regex_constants::match_flag_type flags = regex_constants::match_default);-6- Effects: Behaves "as if" by constructing an object what of type match_results<
iteratorBidirectionalIterator> and then returning the result of regex_search(first, last, what, e, flags).
[re.alg.search]/5 declares
template <class iterator, class charT, class traits>
bool regex_search(iterator first, iterator last,
const basic_regex<charT, traits>& e,
regex_constants::match_flag_type flags =
regex_constants::match_default);
where it's not explained, which iterator category the parameter iterator belongs to. This is inconsistent to the preceding declaration in the synopsis section [re.syn], which says:
template <class BidirectionalIterator, class charT, class traits>
bool regex_search(BidirectionalIterator first, BidirectionalIterator last,
const basic_regex<charT, traits>& e,
regex_constants::match_flag_type flags =
regex_constants::match_default);
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-03-05 00:04:13 | admin | set | messages: + msg5583 |
| 2010-10-21 18:28:33 | admin | set | messages: + msg3327 |
| 2007-02-26 00:00:00 | admin | create | |