$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Xi Wang (xi.wang_at_[hidden])
Date: 2007-04-18 11:03:14
In the source libs/iostreams/src/file_descriptor.cpp, file_descriptor::read,
line 147, I think
return static_cast<std::streamsize>(result);
should be
return static_cast<std::streamsize>(result == 0? -1: result);
The Windows API ReadFile returns TRUE with result == 0 when it has come to
end-of-file.
Regards,
Xi