Section: 31.5.1 [re.synopt] Status: C++14 Submitter: Stephan T. Lavavej Opened: 2013-09-21 Last modified: 2017-07-06
View all other issues in [re.synopt].
View all issues with C++14 status.
31.5.1 [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 31.5.1 [re.synopt] as indicated:
-1- The type syntax_option_type is an implementation-defined bitmask type (22.214.171.124.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.