Re: [Boost-bugs] [Boost C++ Libraries] #4045: MultiArray implementation from base, extents, strides

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4045: MultiArray implementation from base, extents, strides
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-25 19:42:21


#4045: MultiArray implementation from base, extents, strides
---------------------------------------------------+------------------------
 Reporter: Rhys Ulerich <rhys.ulerich@…> | Owner: garcia
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: multi_array
  Version: Boost 1.42.0 | Severity: Not Applicable
 Keywords: |
---------------------------------------------------+------------------------

Comment(by Rhys Ulerich <rhys.ulerich@…>):

 I'd failed to notice that boost::multi_array_ref maintains its stride
 information in a protected member named stride_list_. I have achieved
 what I was after by subclassing and modifying stride_list_ directly.

 From what I can read in the code, mutating stride_list_ underneath
 multi_array_ref should have no ill side effects. If it does, what are
 they? If not, would you please add a constructor to multi_array_ref that
 supports arbitrary strides by invoking the super_type's constructor and
 then modifying the stride list directly?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4045#comment:1>
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