Modify

Ticket #7952 (closed Bugs: fixed)

Opened 15 months ago

Last modified 11 months ago

move: incorrect example

Reported by: Akim Demaille <akim.demaille@…> Owned by: igaztanaga
Milestone: To Be Determined Component: move
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

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!

Attachments

move-doc.patch Download (2.9 KB) - added by Akim Demaille <akim.demaille@…> 15 months ago.
Doc fixing patch
move-assignment.patch Download (898 bytes) - added by Akim Demaille <akim.demaille@…> 15 months ago.
More doc fixes

Change History

Changed 15 months ago by Akim Demaille <akim.demaille@…>

Doc fixing patch

Changed 15 months ago by Akim Demaille <akim.demaille@…>

More doc fixes

comment:1 Changed 11 months ago by igaztanaga

Thanks for the report and the patches.

comment:2 Changed 11 months ago by igaztanaga

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

(In [84546]) Fixes #7952

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.