Modify

Ticket #2766 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

interprocess: error in boost::interprocess::file_lock::swap

Reported by: Anton Ivanov <ai81@…> Owned by: igaztanaga
Milestone: Boost 1.39.0 Component: interprocess
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

current code (1.38.0) is:

#if !defined(BOOST_INTERPROCESS_RVALUE_REFERENCE) && !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) void swap(detail::moved_object<file_lock> mother) { this->swap(mother.get()); } void swap(file_lock &other) #else void swap(file_lock &&other) #endif {

file_handle_t tmp = m_file_hnd; other.m_file_hnd = other.m_file_hnd; other.m_file_hnd = tmp;

}

Seems, line: other.m_file_hnd = other.m_file_hnd; is wrong. Right version: m_file_hnd = other.m_file_hnd;

Attachments

Change History

comment:1 Changed 5 years ago by igaztanaga

Fixed in revision 51289

comment:2 Changed 5 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.