diff --git a/include/regex b/include/regex index e121738a..26ade48b 100644 --- a/include/regex +++ b/include/regex @@ -437,7 +437,7 @@ class match_results public: typedef sub_match value_type; typedef const value_type& const_reference; - typedef const_reference reference; + typedef value_type& reference; typedef /implementation-defined/ const_iterator; typedef const_iterator iterator; typedef typename iterator_traits::difference_type difference_type; @@ -5263,7 +5263,7 @@ private: public: _BidirectionalIterator __position_start_; typedef const value_type& const_reference; - typedef const_reference reference; + typedef value_type& reference; typedef typename __container_type::const_iterator const_iterator; typedef const_iterator iterator; typedef typename iterator_traits<_BidirectionalIterator>::difference_type difference_type; diff --git a/test/re/re.results/types.pass.cpp b/test/re/re.results/types.pass.cpp index 374815a7..4d553837 100644 --- a/test/re/re.results/types.pass.cpp +++ b/test/re/re.results/types.pass.cpp @@ -35,7 +35,7 @@ test() typedef std::match_results MR; static_assert((std::is_same >::value), ""); static_assert((std::is_same& >::value), ""); - static_assert((std::is_same& >::value), ""); + static_assert((std::is_same& >::value), ""); static_assert((!std::is_same::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); diff --git a/www/cxx1y_status.html b/www/cxx1y_status.html index 55451732..827e3950 100644 --- a/www/cxx1y_status.html +++ b/www/cxx1y_status.html @@ -242,7 +242,7 @@ 2293Wrong facet used by num_put::do_putIssaquahComplete 2301Why is std::tie not constexpr?IssaquahComplete 2304Complexity of count in unordered associative containersIssaquahComplete - 2306match_results::reference should be value_type&, not const value_type&Issaquah + 2306match_results::reference should be value_type&, not const value_type&IssaquahComplete 2308Clarify container destructor requirements w.r.t. std::arrayIssaquahComplete 2313tuple_size should always derive from integral_constantIssaquahComplete 2314apply() should return decltype(auto) and use decay_t before tuple_sizeIssaquah