re PR libstdc++/64239 (regex_iterator::operator= should copy match_results::position)
authorTim Shen <timshen@google.com>
Fri, 9 Jan 2015 03:58:59 +0000 (03:58 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Fri, 9 Jan 2015 03:58:59 +0000 (03:58 +0000)
commita8e67466d35f12aa7997363984f97a35e2a40eba
tree4bf54a771ccb3f56af5d6f86fe0077e257be1959
parente608ef6de92f53558b27b3166d5da5ea3725461d
re PR libstdc++/64239 (regex_iterator::operator= should copy match_results::position)

PR libstdc++/64239
* include/bits/regex.h (match_results<>::swap): Use std::swap
instead of swap.
* include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
Likewise.
* testsuite/28_regex/match_results/swap.cc: New testcase.

From-SVN: r219373
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/regex_compiler.tcc
libstdc++-v3/testsuite/28_regex/match_results/swap.cc [new file with mode: 0644]