summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/regex.h
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-02-24 11:45:20 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-02-24 12:15:05 +0000
commit3841739c29a54c0141c3156cdd47891c258b2b88 (patch)
treef69a311e19e72e8d4c1c05f38ba4af4f8dd12b8e /libstdc++-v3/include/bits/regex.h
parent7f5617b00445dcc861a498a4cecc8aaa59e05b8c (diff)
downloadgcc-3841739c29a54c0141c3156cdd47891c258b2b88.tar.gz
libstdc++: enable_view has false positives (LWG 3326)
* include/std/ranges (__deep_const_range, __enable_view_impl): Remove. (ranges::enable_view): Simplify (LWG 3326). * include/bits/range_access.h (ranges::enable_view): Declare. * include/bits/regex.h (__enable_view_impl): Remove partial specialization. * include/bits/stl_multiset.h (__enable_view_impl): Likewise. * include/bits/stl_set.h (__enable_view_impl): Likewise. * include/bits/unordered_set.h (__enable_view_impl): Likewise. * include/debug/multiset.h (__enable_view_impl): Likewise. * include/debug/set.h (__enable_view_impl): Likewise. * include/debug/unordered_set (__enable_view_impl): Likewise. * include/experimental/string_view (ranges::enable_view): Define partial specialization. * include/std/span (ranges::enable_view): Likewise. * include/std/string_view (ranges::enable_view): Likewise. * testsuite/std/ranges/view.cc: Check satisfaction of updated concept.
Diffstat (limited to 'libstdc++-v3/include/bits/regex.h')
-rw-r--r--libstdc++-v3/include/bits/regex.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/libstdc++-v3/include/bits/regex.h b/libstdc++-v3/include/bits/regex.h
index 3307e1c917c..dcae83eea4e 100644
--- a/libstdc++-v3/include/bits/regex.h
+++ b/libstdc++-v3/include/bits/regex.h
@@ -2058,16 +2058,6 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
_GLIBCXX_END_NAMESPACE_CXX11
-#if __cplusplus > 201703L
-namespace ranges::__detail
-{
- template<typename _Tp> extern inline const bool __enable_view_impl;
- template<typename _Bi_iter, typename _Alloc>
- inline constexpr bool __enable_view_impl<match_results<_Bi_iter, _Alloc>>
- = false;
-} // namespace ranges::__detail
-#endif // C++20
-
// [28.11.2] Function template regex_match
/**
* @name Matching, Searching, and Replacing