Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#3581 closed Bugs (fixed)

MultiArray storage order example incorrect for fortran_storage_ordering

Reported by: Rhys Ulerich <rhys.ulerich@…> 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.

Change History (2)

comment:1 by Jeremiah Willcock, 12 years ago

Resolution: fixed
Status: newclosed

(In [62605]) Fixed typo in doc example; fixes #3581

comment:2 by Jeremiah Willcock, 12 years ago

(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

Note: See TracTickets for help on using tickets.