Movatterモバイル変換


[0]ホーム

URL:



This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofNAD Editorial status.

648. regex_iterator c'tor needs clarification/editorial fix

Section: 28.6.11.1.2[re.regiter.cnstr]Status:NAD EditorialSubmitter: Daniel KrüglerOpened: 2007-03-03Last modified: 2016-01-28

Priority:Not Prioritized

View all issues withNAD Editorial status.

Discussion:

In 28.6.11.1.2[re.regiter.cnstr]/2 the effects paragraph starts with:

Effects: Initializes begin and end to point to the beginning and theend 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, becausethere is no target sequence provided, instead there are given twoparameters a and b, both of type BidirectionalIterator. The mentionedpart does not explain what a and b represent.
  2. There does not exist any parameter f, but instead a parameterm in the constructor declaration, so this is actually an editorialfix.

Proposed resolution:

In 28.6.11.1.2[re.regiter.cnstr]/2 change the above quoted part by

Effects: Initializesbegin andend to point tothe beginning and the end of the target sequencedesignated by theiterator range[a, b), setspregex to&re, setsflags tofm, then callsregex_search(begin, end, match,*pregex, flags). If this call returnsfalse theconstructor sets*this to the end-of-sequence iterator.


[8]ページ先頭

©2009-2025 Movatter.jp