<regex>: std::regex uses a nonstandard regex constant "error_syntax" #438
Labels
bug
Something isn't working
LWG issue needed
A wording defect that should be submitted to LWG as a new issue
Describe the bug
The standard has a set of
std::regex_constants
values defined for regex errors, but doesn't define a value for every possible kind of error; for example, an empty pattern that only contains lookbehind. We probably need to add the missing constant to the standard somehow.Boost uses
error_bad_pattern
for this case.Command-line test case
STL version (git commit or Visual Studio version): Visual Studio 2019 version 16.4
Expected behavior
The standard should describe every possible value
regex_error::code()
can return.This is a dual of Microsoft-internal VSO-173840 / AB#173840.
vNext note: Resolving this issue will require breaking binary compatibility. We won't be able to accept pull requests for this issue until the vNext branch is available. See #169 for more information.
The text was updated successfully, but these errors were encountered: