Opened 14 years ago

Closed 14 years ago

#2766 closed Bugs (fixed)

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

Reported by: Anton Ivanov <ai81@…> Owned by: Ion Gaztañaga
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;

Change History (2)

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

Fixed in revision 51289

comment:2 by Ion Gaztañaga, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.