Boost C++ Libraries: Ticket #7952: move: incorrect example https://svn.boost.org/trac10/ticket/7952 <p> One of the examples of the documentation of Boost.Move reads: </p> <pre class="wiki"> ~file_descriptor() //Destructor { if(!os_descr_) operating_system_close_file(os_descr_); } </pre><p> Obviously the if is wrong. I have fixed twice this bug in the attached patch, and made some other minor editing to improve the result. I also chose to use the "empty()" function which makes the code somewhat clearer too. </p> <p> Cheers! </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7952 Trac 1.4.3 Akim Demaille <akim.demaille@…> Wed, 30 Jan 2013 13:59:20 GMT attachment set https://svn.boost.org/trac10/ticket/7952 https://svn.boost.org/trac10/ticket/7952 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">move-doc.patch</span> </li> </ul> <p> Doc fixing patch </p> Ticket Akim Demaille <akim.demaille@…> Mon, 04 Feb 2013 11:14:39 GMT attachment set https://svn.boost.org/trac10/ticket/7952 https://svn.boost.org/trac10/ticket/7952 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">move-assignment.patch</span> </li> </ul> <p> More doc fixes </p> Ticket Ion Gaztañaga Wed, 29 May 2013 10:05:01 GMT <link>https://svn.boost.org/trac10/ticket/7952#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7952#comment:1</guid> <description> <p> Thanks for the report and the patches. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Wed, 29 May 2013 10:07:03 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7952#comment:2 https://svn.boost.org/trac10/ticket/7952#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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84546" title="Fixes #7952">[84546]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7952" title="#7952: Bugs: move: incorrect example (closed: fixed)">#7952</a> </p> Ticket