Implement LWG DR 2329 and DR 2332.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 10 Dec 2014 01:37:37 +0000 (01:37 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 10 Dec 2014 01:37:37 +0000 (01:37 +0000)
commit6789ccfa469492579bfb23dedd20218153cdcd04
tree816f7705563c226e9adf366508afe2675d346bdd
parent2a664a279af73c048fcfdad32eb8b6c29f27dcda
Implement LWG DR 2329 and DR 2332.

* include/bits/regex.h (regex_match, regex_search): LWG DR 2329,
add deleted overloads for rvalue strings.
(regex_iterator, regex_token_iterator): LWG DR 2332, add deleted
constructors for rvalue regexes.
* testsuite/28_regex/algorithms/regex_match/dr2329_neg.cc: New.
* testsuite/28_regex/algorithms/regex_search/dr2329_neg.cc: New.
* testsuite/28_regex/iterators/regex_iterator/ctors/char/dr2332_neg.cc:
New.
* testsuite/28_regex/iterators/regex_token_iterator/ctors/char/
dr2332_neg.cc: New.

From-SVN: r218555
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/dr2329_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/28_regex/algorithms/regex_search/dr2332_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/ctors/char/dr2332_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/28_regex/iterators/regex_token_iterator/ctors/char/dr2332_neg.cc [new file with mode: 0644]