diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-12-27 19:43:33 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-12-27 19:43:33 +0000 |
commit | c41743d0c0d498bd55c91285d5324b02bed7fb54 (patch) | |
tree | 28e606516f0b63f89bdf32341802267c3e27631a /libstdc++-v3/include/bits/regex.h | |
parent | aefd636b3cc00e1aa37537f9fa3a8381883a1d19 (diff) | |
download | gcc-c41743d0c0d498bd55c91285d5324b02bed7fb54.tar.gz |
PR libstdc++/83538 fix std::match_results<T>::reference (LWG 2306)
PR libstdc++/83538
* doc/xml/manual/intro.xml: Document LWG 2306 change.
* include/bits/regex.h (match_results::reference): Change to
non-const reference.
* testsuite/28_regex/match_results/typedefs.cc: Check types are
correct.
From-SVN: r256012
Diffstat (limited to 'libstdc++-v3/include/bits/regex.h')
-rw-r--r-- | libstdc++-v3/include/bits/regex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/regex.h b/libstdc++-v3/include/bits/regex.h index 32e7159eec9..74c5100b524 100644 --- a/libstdc++-v3/include/bits/regex.h +++ b/libstdc++-v3/include/bits/regex.h @@ -1541,7 +1541,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 //@{ typedef sub_match<_Bi_iter> value_type; typedef const value_type& const_reference; - typedef const_reference reference; + typedef value_type& reference; typedef typename _Base_type::const_iterator const_iterator; typedef const_iterator iterator; typedef typename __iter_traits::difference_type difference_type; |