Title
Is <ranges> sufficient for istream_view?
Status
lewg
Section
[range.istream]
Submitter
Barry Revzin

Created on 2022-02-24.00:00:00 last changed 3 weeks ago

Messages

Date: 2022-11-10.23:33:20

[ Kona 2022-11-08; discussed at joint LWG/SG9 session. Send to LEWG (with suggested options) ]

Date: 2022-03-15.00:00:00

[ 2022-03-04; Reflector poll ]

Set priority to 3 after reflector poll.

Date: 2022-02-24.00:00:00

The following is rejected by libstdc++:

#include <ranges>

void call(std::ranges::istream_view<int>& v);

The error is quite cryptic, but ultimately the issue is not including <istream>. I think this currently isn't required to work, so the fact that it does not work is conforming. But should it be required to work?

I think either this should work or we should add a note to [range.istream] about the include.

History
Date User Action Args
2022-11-10 23:33:20adminsetmessages: + msg13001
2022-11-10 23:33:20adminsetstatus: new -> lewg
2022-03-04 14:33:52adminsetmessages: + msg12402
2022-02-24 00:00:00admincreate