Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #10266
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Ian Collins <ian-news@hotmail.com> |
| Newsgroups | comp.lang.c++ |
| Subject | Re: stl copy and istream_iterator and operator >> |
| Date | Mon, 19 Sep 2011 10:23:24 +1200 |
| Lines | 24 |
| Message-ID | <9dn9asFr5dU12@mid.individual.net> (permalink) |
| References | <cd8da4eb-33c9-4b2f-8d75-b2348dcc33a0@s7g2000yqd.googlegroups.com> <9dn78fFr5dU9@mid.individual.net> <513997ec-6237-45a1-8038-7c471c221c87@j1g2000yqn.googlegroups.com> <9dn80fFr5dU10@mid.individual.net> <2186df8c-2f6a-41cf-884e-e9c8d98f870f@b10g2000vbz.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net GCyl6B9H92a/hnqu5N5PUwg2pkOC/pjStDD1MOgYq1hIk/tH6U |
| Cancel-Lock | sha1:EJx3CpfZfzL8HJw0zXihaA3Z/us= |
| User-Agent | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 |
| In-Reply-To | <2186df8c-2f6a-41cf-884e-e9c8d98f870f@b10g2000vbz.googlegroups.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.c++:10266 |
Show key headers only | View raw
On 09/19/11 10:11 AM, persres@googlemail.com wrote:
> http://www.sgi.com/tech/stl/istream_iterator.html
>
> I am using a temporary. I suppose the life time of the temporary will
> be valid until copy is done.
>
> I am in VS 2008.
>
> there is a constructore like this -
>
> istream_iterator(istream_type& _Istr)
> : _Myistr(&_Istr)
> { // construct with input stream
> _Getval();
> }
>
> where
> typedef basic_istream<_Elem, _Traits> istream_type;
I temporary should have the type "const istream_type", so the matching
function signature would be istream_iterator(const istream_type& _Istr).
--
Ian Collins
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
stl copy and istream_iterator and operator >> "persres@googlemail.com" <persres@gmail.com> - 2011-09-18 14:27 -0700
Re: stl copy and istream_iterator and operator >> Ian Collins <ian-news@hotmail.com> - 2011-09-19 09:47 +1200
Re: stl copy and istream_iterator and operator >> "persres@googlemail.com" <persres@gmail.com> - 2011-09-18 14:53 -0700
Re: stl copy and istream_iterator and operator >> Ian Collins <ian-news@hotmail.com> - 2011-09-19 10:00 +1200
Re: stl copy and istream_iterator and operator >> "persres@googlemail.com" <persres@gmail.com> - 2011-09-18 15:11 -0700
Re: stl copy and istream_iterator and operator >> red floyd <no.spam.here@its.invalid> - 2011-09-18 15:23 -0700
Re: stl copy and istream_iterator and operator >> Ian Collins <ian-news@hotmail.com> - 2011-09-19 10:23 +1200
Re: stl copy and istream_iterator and operator >> James Kanze <james.kanze@gmail.com> - 2011-09-19 15:19 -0700
Re: stl copy and istream_iterator and operator >> Ian Collins <ian-news@hotmail.com> - 2011-09-19 10:11 +1200
csiph-web