Boost logo

Boost :

Subject: Re: [boost] [iostreams]mapped_file bug on Win32?
From: Nelson, Erik - 2 (erik.l.nelson_at_[hidden])
Date: 2010-02-22 14:04:13

eg wrote:

>However, I am just a little worried about the statement in the docs
which say
>"If an error has occurred, the return value of SetFilePointer is
>INVALID_SET_FILE_POINTER and GetLastError returns a value other than

>Perhaps this is just a case of fuzzy documentation, or I am reading too
> into the "...and GetLastError returns a value other than NO_ERROR".

Not sure if you're reading too much into it, but this bug is currently
triggered by GetLastError() returning an error when in fact no error has

The INVALID_SET_FILE_POINTER is the more conservative test, it seems to
me, and if SetFilePointer returns it, there *must* have been an error,


Boost list run by bdawes at, gregod at, cpdaniel at, john at