Subject: [Boost-bugs] [Boost C++ Libraries] #7952: move: incorrect example
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-30 13:58:25
#7952: move: incorrect example
-----------------------------------------------------+----------------------
Reporter: Akim Demaille <akim.demaille@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: move
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
-----------------------------------------------------+----------------------
One of the examples of the documentation of Boost.Move reads:
{{{
~file_descriptor()
//Destructor
{ if(!os_descr_) operating_system_close_file(os_descr_); }
}}}
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.
Cheers!
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7952> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC