Boost C++ Libraries: Ticket #1232: mapped_file_source::is_open() is broken under windows https://svn.boost.org/trac10/ticket/1232 <p> Under windows, <strong>mapped_file_impl::handle_</strong> gets set to <strong>INVALID_HANDLE_VALUE</strong> when the file gets closed or on error. But <strong>mapped_file_source::is_open()</strong> incorrectly assumes that if the handle is invalid it will have a value of zero and it doesn't consider <strong>INVALID_HANDLE_VALUE</strong> a possibility. Obviously, adding <strong>INVALID_HANDLE_VALUE</strong> to <strong>mapped_file_source::is_open()</strong> would be poor design. A better way would be to explose a <strong>mapped_file_impl::is_valid()</strong> method that works as it should depending on the platform and have <strong>mapped_file_source::is_open()</strong> call it. </p> <p> Regards, </p> <p> Steven Burns </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1232 Trac 1.4.3 Jonathan Turkanis Thu, 24 Jan 2008 07:43:41 GMT owner, status changed https://svn.boost.org/trac10/ticket/1232#comment:1 https://svn.boost.org/trac10/ticket/1232#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Jonathan Turkanis</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jonathan Turkanis Fri, 25 Jan 2008 05:43:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1232#comment:2 https://svn.boost.org/trac10/ticket/1232#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/42948" title="merged changes from iostreams_dev, revisions 42825-42947">[42948]</a> in trunk </p> Ticket