Boost logo

Boost Users :

Subject: Re: [Boost-users] Error (runtime) assigning multi_array to multi_array with smaller dimensions
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-20 14:44:21


AMDG

Matheus Araújo Aguiar wrote:
> Hello everyone,
>
> I'm getting an error when trying to get one sub array from a multi_array
> with 2 dimensions. This is the code:
>
> //at class constructor
> boost::multi_array<char, 2> array2d = new boost::multi_array<char,
> 2>(boost::extents[x][y]);
>

Is that exactly what you did? If so I'm surprised that it compiles, because
you are trying to assign a pointer to a multi_array to a multi_array.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net