Opened 8 years ago

Closed 8 years ago

#10247 closed Bugs (fixed)

[doc] Incorrect comment in boost/interprocess/shared_memory_object.hpp

Reported by: Eugeny <54l0gan@…> 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);
}

Change History (1)

comment:1 by Ion Gaztañaga, 8 years ago

Resolution: fixed
Status: newclosed

Thanks for the report. Fixed in commit ad1b7f301ce300036a8a8e6ccb6e9106b80a01b1 in develop branch.

Note: See TracTickets for help on using tickets.