[libcxx] Add "flag" default arg: basic_regex ptr_size_flag ctor
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Sun, 7 Aug 2016 22:26:04 +0000 (22:26 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Sun, 7 Aug 2016 22:26:04 +0000 (22:26 +0000)
commit2fdf202493fcef9a3cf7c1b14843090d9eef2539
tree15d8784c2e0a349d797d96d8101077240a904938
parentfaf3149df62ab1f98e21526b68686a7c62a11062
[libcxx] Add "flag" default arg: basic_regex ptr_size_flag ctor

Summary:
The synopsis in C++11 subclause 28.8 [re.regex] has:
```
basic_regex(const charT* p, size_t len,
            flag_type f = regex_constants::ECMAScript);
```

The default argument is added to libc++ by this change.

Reviewers: mclow.lists, rsmith, hubert.reinterpretcast

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D22702

Reapplies r277966.
Patch by Jason Liu!

llvm-svn: 277968
libcxx/include/regex
libcxx/test/std/re/re.regex/re.regex.construct/ptr_size.pass.cpp [new file with mode: 0644]