Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3704 closed Bugs (fixed)

Incorrect boost::decay documentation

Reported by: Kenneth Ho <ken@…> Owned by: John Maddock
Milestone: Boost 1.42.0 Component: Documentation
Version: Boost 1.41.0 Severity: Problem
Keywords: decay type_traits Cc:

Description

The first row of table 1.10 Examples in boost::decay doc states the result of decay<int[2][3]>::type is int[2]* (where lowest array bound removed), which is incorrect and is actually int[2]* (where topmost array bound removed). Unlike the former, the later behavior is consistent with boost::remove_extent.

Also, the description of type, quote: "... the result is remove_extent<U>* ...", would've been more accurate if it was "... the result is remove_extent<U>::type* ..."

Attachments (1)

decay.cpp (665 bytes) - added by Kenneth Ho <ken@…> 8 years ago.
Source code of test program to demonstrate the incorrectness of decay doc.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Kenneth Ho <ken@…>

Attachment: decay.cpp added

Source code of test program to demonstrate the incorrectness of decay doc.

comment:1 Changed 8 years ago by Matias Capeletto

Owner: changed from Matias Capeletto to John Maddock

comment:2 Changed 8 years ago by John Maddock

Resolution: fixed
Status: newclosed

(In [58901]) Fixes #3704.

comment:3 Changed 8 years ago by John Maddock

(In [58905]) Fixes #3704.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Maddock.
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.