Boost C++ Libraries: Ticket #10247: [doc] Incorrect comment in boost/interprocess/shared_memory_object.hpp https://svn.boost.org/trac10/ticket/10247 <p> In header: </p> <pre class="wiki">//!Closes a previously opened file mapping. Never throws. void priv_close(); //!Closes a previously opened file mapping. Never throws. bool priv_open_or_create(ipcdetail::create_enum_t type, const char *filename, mode_t mode, const permissions &amp;perm); </pre><p> Perhaps it is copy-paste typo. Actually priv_open_or_create throws of exception (and does not closes of file), e.g. when wrong filename (with slashes) was passed on Linux. </p> <pre class="wiki">//Check for error if(m_handle == ipcdetail::invalid_file()){ error_info err = system_error_code(); this-&gt;priv_close(); throw interprocess_exception(err); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10247 Trac 1.4.3 Ion Gaztañaga Thu, 31 Jul 2014 21:36:21 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10247#comment:1 https://svn.boost.org/trac10/ticket/10247#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the report. Fixed in commit ad1b7f301ce300036a8a8e6ccb6e9106b80a01b1 in develop branch. </p> Ticket