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

Created on 2022-02-24.00:00:00 last changed 2 months ago

Messages

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-03-04 14:33:52adminsetmessages: + msg12402
2022-02-24 00:00:00admincreate