#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.
Note:
See TracTickets
for help on using tickets.
(In [62606]) Changed "times" to "multiplies" as per #3820; fixes #3820