Modify

Ticket #3820 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Reported by: niels_dekker Owned by: 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.

Attachments

Change History

comment:1 Changed 4 years ago by jewillco

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

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

comment:2 Changed 4 years ago by jewillco

(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

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.