[Boost-bugs] [Boost C++ Libraries] #3820: MultiArray reference manual: please replace std::times by std::multiplies

Subject: [Boost-bugs] [Boost C++ Libraries] #3820: MultiArray reference manual: please replace std::times by std::multiplies
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-05 16:09:45


#3820: MultiArray reference manual: please replace std::times by std::multiplies
--------------------------+-------------------------------------------------
 Reporter: niels_dekker | Owner: garcia
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: multi_array
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3820>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC