This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++14 status.
Section: 32.4.2 [re.synopt] Status: C++14 Submitter: Stephan T. Lavavej Opened: 2013-09-21 Last modified: 2017-07-05
View all other issues in [re.synopt].
View all issues with C++14 status.
32.4.2 [re.synopt]/1 says "A valid value of type syntax_option_type shall have exactly one of the elements ECMAScript, basic, extended, awk, grep, egrep, set."This "exactly one" wording technically forbids passing icase by itself! Users should not be required to pass regex::ECMAScript | regex::icase. (Note that the cost of an additional check for no grammar being explicitly requested is completely irrelevant, as regex construction is so much more expensive.)
[Issaquah 2014-02-11: Move to Immediate]
This wording is relative to N3691.
Edit 32.4.2 [re.synopt] as indicated:
-1- The type syntax_option_type is an implementation-defined bitmask type (188.8.131.52.3). Setting its elements has the effects listed in table 138. A valid value of type syntax_option_type shall have
exactlyone of the elements ECMAScript, basic, extended, awk, grep, egrep, set.