🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309736

Re: Problem z std::istream

#309736
From: bartekltg
Date: Fri, 06 Jul 2018 20:09
17 lines
1521 bytes
On 06.07.2018 21:42, Borneq wrote:
> W dniu 06.07.2018 o 18:01, Bartłomiej Golenko pisze:
>> C++98:
>> If the eofbit flag is set before the call, the function fails (sets
>> failbit and returns).
>>
>> C++11:
>> The function clears the eofbit flag, if set before the call.
> 
> Czyli problem jest w C++98 a nie w C++11?
> Ja używałem to w Visualu 2015, czy tam domyślnie ustawione jest C++14?

Pierwszy link z googla na [ seekg after eof] pisze, że można to obejść
wołając clear().

pzdr
bartekltg
Technical Details
Message-ID: <phoia4$3le$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <phgb39$l7r$1@node2.news.atman.pl> <slrnpjpjr2.ptq.bartek@kts.pwr.edu.pl> <phnuad$ib1$1@node1.news.atman.pl> <slrnpjv4j5.75q.bartek@kts.pwr.edu.pl> <phogmq$24n$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: bartekltg <bartekltg@gmail.com>
Newsgroups: pl.comp.lang.c
Subject: Re: Problem z std::istream
Date: Fri, 6 Jul 2018 22:09:40 +0200
Organization: ATMAN - ATM S.A.
Lines: 17
Message-ID: <phoia4$3le$1@node2.news.atman.pl>
References: <phgb39$l7r$1@node2.news.atman.pl> <slrnpjpjr2.ptq.bartek@kts.pwr.edu.pl> <phnuad$ib1$1@node1.news.atman.pl> <slrnpjv4j5.75q.bartek@kts.pwr.edu.pl> <phogmq$24n$1@node2.news.atman.pl>
NNTP-Posting-Host: 89-70-113-215.dynamic.chello.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1530907780 3758 89.70.113.215 (6 Jul 2018 20:09:40 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Fri, 6 Jul 2018 20:09:40 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
In-Reply-To: <phogmq$24n$1@node2.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit