help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault on initialisation with istream_iterator


From: Jeffrey Schwab
Subject: Re: Segfault on initialisation with istream_iterator
Date: Tue, 24 May 2011 19:59:17 -0000
User-agent: G2/1.0

On Monday, April 25, 2011 3:07:33 PM UTC-4, B Thomas wrote:
> The following program segfaults on g++ 4.4.5. I am surprised. As far as
> I know this is valid C++. Is this a known bug ?

>     for(i == v.begin(); i != v.end(); ++i){

ITYM i = v.begin(), not i == v.begin().


reply via email to

[Prev in Thread] Current Thread [Next in Thread]