* [committed] libstdc++: Implement proposed resolution for LWG 3532
@ 2021-04-30 15:07 Patrick Palka
2021-04-30 17:00 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Palka @ 2021-04-30 15:07 UTC (permalink / raw)
To: gcc-patches; +Cc: libstdc++, Patrick Palka
Tested on x86_64-pc-linux-gnu, committed as "obvious".
libstdc++-v3/ChangeLog:
* include/std/ranges (split_view::_InnerIter::operator++):
Depend on _Base instead of _Vp directly, as per LWG 3532.
---
libstdc++-v3/include/std/ranges | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
index 73d3e008a46..4975d5c630b 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -2898,7 +2898,7 @@ namespace views::__adaptor
constexpr decltype(auto)
operator++(int)
{
- if constexpr (forward_range<_Vp>)
+ if constexpr (forward_range<_Base>)
{
auto __tmp = *this;
++*this;
--
2.31.1.362.g311531c9de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [committed] libstdc++: Implement proposed resolution for LWG 3532
2021-04-30 15:07 [committed] libstdc++: Implement proposed resolution for LWG 3532 Patrick Palka
@ 2021-04-30 17:00 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2021-04-30 17:00 UTC (permalink / raw)
To: Patrick Palka; +Cc: gcc-patches, libstdc++
On 30/04/21 11:07 -0400, Patrick Palka via Libstdc++ wrote:
>Tested on x86_64-pc-linux-gnu, committed as "obvious".
Thanks. OK for 11 and 10 too.
>libstdc++-v3/ChangeLog:
>
> * include/std/ranges (split_view::_InnerIter::operator++):
> Depend on _Base instead of _Vp directly, as per LWG 3532.
>---
> libstdc++-v3/include/std/ranges | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/libstdc++-v3/include/std/ranges b/libstdc++-v3/include/std/ranges
>index 73d3e008a46..4975d5c630b 100644
>--- a/libstdc++-v3/include/std/ranges
>+++ b/libstdc++-v3/include/std/ranges
>@@ -2898,7 +2898,7 @@ namespace views::__adaptor
> constexpr decltype(auto)
> operator++(int)
> {
>- if constexpr (forward_range<_Vp>)
>+ if constexpr (forward_range<_Base>)
> {
> auto __tmp = *this;
> ++*this;
>--
>2.31.1.362.g311531c9de
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-30 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 15:07 [committed] libstdc++: Implement proposed resolution for LWG 3532 Patrick Palka
2021-04-30 17:00 ` 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).