Modify

Ticket #3704 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

Incorrect boost::decay documentation

Reported by: Kenneth Ho <ken@…> Owned by: johnmaddock
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

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

Change History

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

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

comment:1 Changed 4 years ago by matias

  • Owner changed from matias to johnmaddock

comment:2 Changed 4 years ago by johnmaddock

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

(In [58901]) Fixes #3704.

comment:3 Changed 4 years ago by johnmaddock

(In [58905]) Fixes #3704.

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.