Boost C++ Libraries: Ticket #2766: interprocess: error in boost::interprocess::file_lock::swap https://svn.boost.org/trac10/ticket/2766 <p> current code (1.38.0) is: </p> <blockquote> <p> #if !defined(BOOST_INTERPROCESS_RVALUE_REFERENCE) &amp;&amp; !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) void swap(detail::moved_object&lt;file_lock&gt; mother) { this-&gt;swap(mother.get()); } void swap(file_lock &amp;other) #else void swap(file_lock &amp;&amp;other) #endif { </p> <blockquote> <p> file_handle_t tmp = m_file_hnd; other.m_file_hnd = other.m_file_hnd; other.m_file_hnd = tmp; </p> </blockquote> <p> } </p> </blockquote> <p> Seems, line: other.m_file_hnd = other.m_file_hnd; is wrong. Right version: m_file_hnd = other.m_file_hnd; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2766 Trac 1.4.3 Ion Gaztañaga Tue, 17 Feb 2009 17:00:16 GMT <link>https://svn.boost.org/trac10/ticket/2766#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2766#comment:1</guid> <description> <p> Fixed in revision 51289 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Tue, 17 Feb 2009 17:06:25 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2766#comment:2 https://svn.boost.org/trac10/ticket/2766#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket