libstdc++: decay in viewable_range should be remove_cvref (LWG 3375)
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Feb 2020 11:30:30 +0000 (11:30 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 6 Feb 2020 13:32:48 +0000 (13:32 +0000)
* include/bits/stl_algobase.h (__iter_swap, __iter_swap<true>): Remove
redundant _GLIBCXX20_CONSTEXPR.

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/ranges

index 50c4dd9b84cc6962afa0bf7788f26d87d0fae67a..a9c96ac9185950362a14b565ea1a318282405853 100644 (file)
@@ -3,6 +3,9 @@
        * include/bits/stl_algobase.h (__iter_swap, __iter_swap<true>): Remove
        redundant _GLIBCXX20_CONSTEXPR.
 
+       * include/std/ranges (viewable_range): Replace decay_t with
+       remove_cvref_t (LWG 3375).
+
 2020-02-05  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/iterator_concepts.h (iter_reference_t)
index ea558c76c9dbdf718e7e833f5b42831a93ad2787..860f7283be56867d57409c874e1c4f550d6ee734 100644 (file)
@@ -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
   {