Topic: Editorial issue [N2134]: Inconsistent regex_search params


Author: "=?iso-8859-1?q?Daniel_Kr=FCgler?=" <daniel.kruegler@googlemail.com>
Date: Mon, 26 Feb 2007 16:12:14 CST
Raw View
28.11.3/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
28.4, 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);

Proposed resolution:

In 28.11.3/5 replace all three occurences of param "iterator" with
"BidirectionalIterator"

Greetings from Bremen,

Daniel Kr   gler


---
[ 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                      ]





Author: "=?iso-8859-1?q?Daniel_Kr=FCgler?=" <daniel.kruegler@googlemail.com>
Date: Tue, 27 Feb 2007 01:06:42 CST
Raw View
On Feb 26, 11:12 pm, "Daniel Kr   gler" <daniel.krueg...@googlemail.com>
wrote:
> Proposed resolution:
>
> In 28.11.3/5 replace all three occurences of param "iterator" with
> "BidirectionalIterator"

I apologize for overlooking the following fourth position of
replacement:

The text in 28.11.3/6 needs a similar replacement:

Replace

match_results<iterator>

by

match_results<BidirectionalIterator>

Greetings from Bremen,

Daniel


---
[ 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                      ]