Boost logo

Boost Users :

Subject: Re: [Boost-users] [range] istream_range from a temporary istream
From: Akira Takahashi (faithandbrave_at_[hidden])
Date: 2011-07-22 04:52:46


Hi, Nathan.

2011/7/22 Nathan Ridge <zeratul976_at_[hidden]>:
>
> The boost::istream_range function currently takes its parameter by
> lvalue reference (i.e. istream&). Can this be changed to rvalue
> reference (istream&&)?
>
> This way one can write things like:
>
> vector<T> v;
> push_back(v, istream_range<T>(ifstream("some_file.txt")));
>

Good idea!
+1


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net