Modify

Opened 5 years ago

Closed 4 years ago

#7952 closed Bugs (fixed)

move: incorrect example

Reported by: Akim Demaille <akim.demaille@…> Owned by: Ion Gaztañaga
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 (2)

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

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Akim Demaille <akim.demaille@…>

Attachment: move-doc.patch added

Doc fixing patch

Changed 5 years ago by Akim Demaille <akim.demaille@…>

Attachment: move-assignment.patch added

More doc fixes

comment:1 Changed 4 years ago by Ion Gaztañaga

Thanks for the report and the patches.

comment:2 Changed 4 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

(In [84546]) Fixes #7952

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.