[Boost-bugs] [Boost C++ Libraries] #10247: [doc] Incorrect comment in boost/interprocess/shared_memory_object.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #10247: [doc] Incorrect comment in boost/interprocess/shared_memory_object.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-27 17:38:59


#10247: [doc] Incorrect comment in boost/interprocess/shared_memory_object.hpp
-----------------------------------+--------------------------
 Reporter: Eugeny <54l0gan@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.55.0 | Severity: Cosmetic
 Keywords: comment documentation |
-----------------------------------+--------------------------
 In header:

 {{{
 //!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 &perm);
 }}}

 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.

 {{{
 //Check for error
 if(m_handle == ipcdetail::invalid_file()){
    error_info err = system_error_code();
    this->priv_close();
    throw interprocess_exception(err);
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10247>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC