Topic: Defect report [N2134]: regex_iterator c'tor needs clarification/editorial fix


Author: "=?iso-8859-1?q?Daniel_Kr=FCgler?=" <daniel.kruegler@googlemail.com>
Date: Sat, 3 Mar 2007 18:36:06 CST
Raw View
In [re.regiter.cnstr]-28.12.1.1/2 the effects paragraph starts with:

"Effects: Initializes begin and end to point to the beginning and the
end of the target sequence, sets pregex to &re, sets flags to f,[..]"

There are two issues with this description:

1) The meaning of very first part of this quote is unclear, because
there is no target sequence provided, instead there are given two
parameters a and b, both of type BidirectionalIterator. The mentioned
part does not explain what a and b represent.

2) There does not exist any parameter f, but instead a parameter
m in the constructor declaration, so this is actually an editorial
fix.

Proposed resolution:

In 28.12.1.1/2 change the above quoted part by

"Effects: Initializes begin and end to point to the beginning and the
end of the target sequence designated by the iterator range [a, b),
sets pregex to &re, sets flags to 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                      ]