Opened 8 years ago

Closed 7 years ago

Last modified 7 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:


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.

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Jeremiah Willcock

Resolution: fixed
Status: newclosed

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

comment:2 Changed 7 years ago by Jeremiah Willcock

(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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ronald Garcia.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.