#3704 closed Bugs (fixed)
Incorrect boost::decay documentation
Reported by: | 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)
Note:
See TracTickets
for help on using tickets.
Source code of test program to demonstrate the incorrectness of decay doc.