#3581 closed Bugs (fixed)
MultiArray storage order example incorrect for fortran_storage_ordering
Reported by: | Owned by: | Ronald Garcia | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multi_array |
Version: | Boost 1.40.0 | Severity: | Problem |
Keywords: | Cc: |
Description
In the 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.
Note:
See TracTickets
for help on using tickets.
(In [62605]) Fixed typo in doc example; fixes #3581