Maybe `std::istream&& stream` is a bit more convenient here.