Topic: Defect Report: Inconsistent definition of basic_regex constructor
Author: bop@gmb.dk ("Bo Persson")
Date: Tue, 23 Jan 2007 18:51:54 GMT Raw View
Section 28.8 [re.regex] lists a constructor
template<class InputIterator>
basic_regex(InputIterator first, InputIterator last,
flag_type f = regex_constants::ECMAScript);
However, in section 28.8.2/15 [re.regex.construct], this constructor takes a
pair of ForwardIterator.
Proposed resolution:
One of
1) If an InputIterator is sufficient to construct a basic_regex, change
[re.regex.construct] to show that.
2) Otherwise change [re.regex] to require a ForwardIterator.
Bo Persson
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]