[Boost-bugs] [Boost C++ Libraries] #3581: MultiArray storage order example incorrect for fortran_storage_ordering

Subject: [Boost-bugs] [Boost C++ Libraries] #3581: MultiArray storage order example incorrect for fortran_storage_ordering
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-29 23:17:01


#3581: MultiArray storage order example incorrect for fortran_storage_ordering
---------------------------------------------------+------------------------
 Reporter: Rhys Ulerich <rhys.ulerich@…> | Owner: garcia
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multi_array
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 In the
 [http://www.boost.org/doc/libs/1_40_0/libs/multi_array/doc/user.html#sec_storage
 boost::fortran_storage_order example] there may be a missing set of
 parens. I think
 {{{
 array_type A(boost::extents[3][4][2],boost::fortran_storage_order);
 }}}
 should become
 {{{
 array_type A(boost::extents[3][4][2],boost::fortran_storage_order());
 }}}
 based on the constructor
 {{{
   explicit multi_array(const ExtentList& sizes,
                        const storage_order_type& store =
 c_storage_order(),
                        const Allocator& alloc = Allocator());
 }}}
 and some first hand compilation error experience.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3581>
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:01 UTC