Opened 8 years ago
Closed 8 years ago
#10247 closed Bugs (fixed)
[doc] Incorrect comment in boost/interprocess/shared_memory_object.hpp
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | interprocess |
Version: | Boost 1.55.0 | Severity: | Cosmetic |
Keywords: | comment documentation | Cc: |
Description
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); }
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Fixed in commit ad1b7f301ce300036a8a8e6ccb6e9106b80a01b1 in develop branch.