Opened 13 years ago

Closed 13 years ago

Last modified 13 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@…> 13 years ago.
Source code of test program to demonstrate the incorrectness of decay doc.

Download all attachments as: .zip

Change History (4)

by Kenneth Ho <ken@…>, 13 years ago

Attachment: decay.cpp added

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

comment:1 by Matias Capeletto, 13 years ago

Owner: changed from Matias Capeletto to John Maddock

comment:2 by John Maddock, 13 years ago

Resolution: fixed
Status: newclosed

(In [58901]) Fixes #3704.

comment:3 by John Maddock, 13 years ago

(In [58905]) Fixes #3704.

Note: See TracTickets for help on using tickets.