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 [re.const] Status: C++14 Submitter: Jonathan Wakely Opened: 2011-05-09 Last modified: 2016-01-28
Priority: Not Prioritized
View all issues with C++14 status.
Discussion:
When N3110 was applied to the WP some redundant "static" keywords were added and one form of initializer which isn't valid for enumeration types was replaced with another form of invalid initializer.
[ 2011 Bloomington. ]
Move to Ready.
Proposed resolution:
This wording is relative to the FDIS.
Change 32.4.2 [re.synopt] as indicated:
namespace std { namespace regex_constants { typedef T1 syntax_option_type;staticconstexpr syntax_option_type icase = unspecified ;staticconstexpr syntax_option_type nosubs = unspecified ;staticconstexpr syntax_option_type optimize = unspecified ;staticconstexpr syntax_option_type collate = unspecified ;staticconstexpr syntax_option_type ECMAScript = unspecified ;staticconstexpr syntax_option_type basic = unspecified ;staticconstexpr syntax_option_type extended = unspecified ;staticconstexpr syntax_option_type awk = unspecified ;staticconstexpr syntax_option_type grep = unspecified ;staticconstexpr syntax_option_type egrep = unspecified ; } }
Change 32.4.3 [re.matchflag] as indicated:
namespace std { namespace regex_constants { typedef T2 match_flag_type;staticconstexpr match_flag_type match_default= 0{};staticconstexpr match_flag_type match_not_bol = unspecified ;staticconstexpr match_flag_type match_not_eol = unspecified ;staticconstexpr match_flag_type match_not_bow = unspecified ;staticconstexpr match_flag_type match_not_eow = unspecified ;staticconstexpr match_flag_type match_any = unspecified ;staticconstexpr match_flag_type match_not_null = unspecified ;staticconstexpr match_flag_type match_continuous = unspecified ;staticconstexpr match_flag_type match_prev_avail = unspecified ;staticconstexpr match_flag_type format_default= 0{};staticconstexpr match_flag_type format_sed = unspecified ;staticconstexpr match_flag_type format_no_copy = unspecified ;staticconstexpr match_flag_type format_first_only = unspecified ; } }
Change 32.4.4 [re.err] as indicated:
namespace std { namespace regex_constants { typedef T3 error_type;staticconstexpr error_type error_collate = unspecified ;staticconstexpr error_type error_ctype = unspecified ;staticconstexpr error_type error_escape = unspecified ;staticconstexpr error_type error_backref = unspecified ;staticconstexpr error_type error_brack = unspecified ;staticconstexpr error_type error_paren = unspecified ;staticconstexpr error_type error_brace = unspecified ;staticconstexpr error_type error_badbrace = unspecified ;staticconstexpr error_type error_range = unspecified ;staticconstexpr error_type error_space = unspecified ;staticconstexpr error_type error_badrepeat = unspecified ;staticconstexpr error_type error_complexity = unspecified ;staticconstexpr error_type error_stack = unspecified ; } }