public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libstdc++: Implement LWG 3568 change to ranges::basic_istream_view
@ 2021-10-19 18:29 Patrick Palka
  2021-10-19 18:47 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Palka @ 2021-10-19 18:29 UTC (permalink / raw)
  To: gcc-patches; +Cc: libstdc++, Patrick Palka

Tested on x86_64-pc-linux-gnu, does this look OK for trunk?
(The branches don't have P2325R3.)

libstdc++-v3/ChangeLog:

	* include/std/ranges (basic_istream_view::_M_object): Value
	initialize as per LWG 3568.
---
 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 5e18c98eb2f..4a90f115d2f 100644
--- a/libstdc++-v3/include/std/ranges
+++ b/libstdc++-v3/include/std/ranges
@@ -711,7 +711,7 @@ namespace views
 
     private:
       basic_istream<_CharT, _Traits>* _M_stream;
-      _Val _M_object;
+      _Val _M_object = _Val();
 
       struct _Iterator
       {
-- 
2.33.1.711.g9d530dc002


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libstdc++: Implement LWG 3568 change to ranges::basic_istream_view
  2021-10-19 18:29 [PATCH] libstdc++: Implement LWG 3568 change to ranges::basic_istream_view Patrick Palka
@ 2021-10-19 18:47 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2021-10-19 18:47 UTC (permalink / raw)
  To: Patrick Palka; +Cc: gcc-patches, libstdc++

On Tue, 19 Oct 2021, 19:31 Patrick Palka via Libstdc++, <
libstdc++@gcc.gnu.org> wrote:

> Tested on x86_64-pc-linux-gnu, does this look OK for trunk?
>

Yes, thanks.


(The branches don't have P2325R3.)
>
> libstdc++-v3/ChangeLog:
>
>         * include/std/ranges (basic_istream_view::_M_object): Value
>         initialize as per LWG 3568.
> ---
>  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 5e18c98eb2f..4a90f115d2f 100644
> --- a/libstdc++-v3/include/std/ranges
> +++ b/libstdc++-v3/include/std/ranges
> @@ -711,7 +711,7 @@ namespace views
>
>      private:
>        basic_istream<_CharT, _Traits>* _M_stream;
> -      _Val _M_object;
> +      _Val _M_object = _Val();
>
>        struct _Iterator
>        {
> --
> 2.33.1.711.g9d530dc002
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-19 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 18:29 [PATCH] libstdc++: Implement LWG 3568 change to ranges::basic_istream_view Patrick Palka
2021-10-19 18:47 ` 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).