PR libstdc++/64239
commitdb23e1ad3827deafb8496ca568194f7036b6d81b
authortimshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Dec 2014 22:19:18 +0000 (13 22:19 +0000)
committertimshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Dec 2014 22:19:18 +0000 (13 22:19 +0000)
tree8fbd14b1bfca1e100c674f1a08fca314b98923e6
parent82fe3c603e68f05ff811ad7f100278cb4d049898
PR libstdc++/64239
* include/bits/regex.h (match_results<>::match_results,
match_results<>::operator=, match_results<>::position,
match_results<>::swap): Remove match_results::_M_in_iterator.
Fix ctor/assign/swap.
* include/bits/regex.tcc: (__regex_algo_impl<>,
regex_iterator<>::operator++): Set match_results::_M_begin as
"start position".
* testsuite/28_regex/iterators/regex_iterator/char/
string_position_01.cc: Test cases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218710 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/regex.tcc
libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/char/string_position_01.cc