Topic: Editorial issues [N2134]: Several typos in regex_token_iterator constructors


Author: "=?iso-8859-1?q?Daniel_Kr=FCgler?=" <daniel.kruegler@googlemail.com>
Date: Sat, 3 Mar 2007 18:37:58 CST
Raw View
In [re.tokiter.cnstr]-28.12.2.1/1+2 both the constructor declaration
and the following text shows some obvious typos:

1) The third constructor form is written as

template <std::size_t N>
regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
const regex_type& re, const int (&submatches)[R],
regex_constants::match_flag_type m =
regex_constants::match_default);

where the dimensions of submatches are specified by an
unknown value R, which should be N.

2) Paragraph 2 of the same section says in its last sentence:

"The third constructor initializes the member subs to hold a copy
of the sequence of integer values pointed to by the iterator range
[&submatches,
&submatches + R)."

where again R must be replaced by N.

3) Paragraph 3 of the same section says in its first sentence:

"Each constructor then sets N to 0, and position to
position_iterator(a, b, re, f)."

where a non-existing parameter "f" is mentioned, which must be
replaced
by the parameter "m".

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                      ]