Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Defect Report: Inconsistent definition of basic_regex constructor

1 view
Skip to first unread message

Bo Persson

unread,
Jan 23, 2007, 1:51:54 PM1/23/07
to
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...@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]

0 new messages