[Bug libstdc++/64239] regex_iterator::operator= should copy match_results::position
timshen at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 9 03:59:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239
--- Comment #8 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Fri Jan 9 03:58:59 2015
New Revision: 219373
URL: https://gcc.gnu.org/viewcvs?rev=219373&root=gcc&view=rev
Log:
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.
Added:
trunk/libstdc++-v3/testsuite/28_regex/match_results/swap.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/regex.h
trunk/libstdc++-v3/include/bits/regex_compiler.tcc
More information about the Gcc-bugs
mailing list