Opened 8 years ago

Closed 7 years ago

Last modified 7 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 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.

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Jeremiah Willcock

Resolution: fixed
Status: newclosed

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

comment:2 Changed 7 years ago by Jeremiah Willcock

(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

Modify Ticket

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