Boost logo

Boost Users :

Subject: Re: [Boost-users] multi_array_ref (lack of) default constructor
From: gtsml owevwr (gtsml.owevwr_at_[hidden])
Date: 2009-06-01 04:09:52

> Perhaps, but multi_array & multi_array_ref do contain the notion of
> a view. They're used to generate slices through the array, but I think
> it would be ok to construct a slice which is the whole array, and that
> would be your view I believe.

That might work actually... Well, at one condition: that the view
doesn't hold any reference to the multi_array_ref.
Let's put it differently, the view needs to be valid even after the
destruction of the multi_array_ref.

I'm going to give it a try but please feel free to comment on this as
I might be missing something...

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at