Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#3820 closed Bugs (fixed)

MultiArray reference manual: please replace std::times by std::multiplies

Reported by: niels_dekker Owned by: Ronald Garcia
Milestone: Boost 1.42.0 Component: multi_array
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc:

Description

http://www.boost.org/doc/libs/1_41_0/libs/multi_array/doc/reference.html uses std::times to express the first precondition of reshape:

std::accumulate(sizes.begin(),sizes.end(),size_type(1),std::times<size_type>()) == this->num_elements();

std::times is non-standard, please use std::multiplies instead.

Change History (2)

comment:1 by Jeremiah Willcock, 12 years ago

Resolution: fixed
Status: newclosed

(In [62606]) Changed "times" to "multiplies" as per #3820; fixes #3820

comment:2 by Jeremiah Willcock, 12 years ago

(In [65771]) Merged r46508 (bug fixes), r53790 (added test case), r62605 (fix for #3581), r62606 (fix for #3820), r62607 (fix for #3989), r62609 (missing header), r62963 (non-Trac bug fixes) from trunk; refs #3581, #3820, #3989

Note: See TracTickets for help on using tickets.