Re: [Boost-users] [multi_array] compiling and changing an example

AMDG sean farrow wrote:
I'm trying to use boost::multi_array, I've included boost/multi_array.hpp in the file and have the following code:
private:
typedef boost::multi_array
array_type; typedef array_type::index index;
array_type test(boost::extents[3][4][2]);
Commenting out the third line compiles fine, but leaving this in gives a c2061 error. It seems there is an issue with boost::extents, which header is this in? I don't have a using boost; earlier, should I have? I'm using visual c+ 2008.
It compiles fine for me with the trunk:
#include
participants (1)
-
Steven Watanabe