* [committed] libstdc++: decay in viewable_range should be remove_cvref (LWG 3375)
@ 2020-02-06 13:37 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-02-06 13:37 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 159 bytes --]
* include/bits/stl_algobase.h (__iter_swap, __iter_swap<true>): Remove
redundant _GLIBCXX20_CONSTEXPR.
Tested powerpc64le-linux, committed to master.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 849 bytes --]
commit 26eae9ac2bf75a26a419dc1e47a067c66331fb74
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Feb 6 11:30:30 2020 +0000
libstdc++: decay in viewable_range should be remove_cvref (LWG 3375)
* include/bits/stl_algobase.h (__iter_swap, __iter_swap<true>): Remove
redundant _GLIBCXX20_CONSTEXPR.
diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index ea558c76c9d..860f7283be5 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -92,7 +92,7 @@ namespace ranges
/// A range which can be safely converted to a view.
template<typename _Tp>
concept viewable_range = range<_Tp>
- && (safe_range<_Tp> || view<decay_t<_Tp>>);
+ && (safe_range<_Tp> || view<remove_cvref_t<_Tp>>);
namespace __detail
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-06 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06 13:37 [committed] libstdc++: decay in viewable_range should be remove_cvref (LWG 3375) Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).