Notes |
|
(0038094)
|
Brad King
|
2015-02-27 10:53
|
|
Thanks. IIUC the failbit should only be set when trying to read past EOF, as in the first attempt to read bytes after the last byte in the file was previously read.
Can you tell me which stream library is at fault here? The existing workaround is for a stream library from the 1990s. One might have thought modern C++ implementors would know how to read to end of file correctly. It seems like a common operation ;)
Anyway, based on your approach I've made a similar change to upstream KWSys here:
http://review.source.kitware.com/19352 [^]
Please try that out. |
|
|
(0038095)
|
Paul Martin
|
2015-02-27 11:06
|
|
I really don't think code obfuscation is a move in the right direction here.
Lazy boolean evaluation combined with the comma operator is not a recipe for long term code maintainability.
For reference, the C++ library is from gcc 4.9.2. |
|
|
(0038096)
|
Brad King
|
2015-02-27 11:14
|
|
Re 0015424:0038095: Okay, I changed it to your exact patch.
Is this a known bug in gcc 4.9.2's stream library that has been addressed, or were we actually doing something non-standard here? |
|
|
(0038134)
|
Brad King
|
2015-03-02 09:05
|
|
|
|
(0038139)
|
Brad King
|
2015-03-03 08:51
|
|
|
|
(0039720)
|
Robert Maynard
|
2015-11-02 09:13
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|