|
Boost Users : |
Subject: [Boost-users] [multi_array] compiling and changing an example
From: sean farrow (sean.farrow_at_[hidden])
Date: 2010-01-24 22:42:53
Hi:
I'm tryingto use boost::multi_array, I've included boost/multi_array.hpp
in the file and have the following code:
private:
typedef boost::multi_array<double, 3> 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.
Any help apreciated.
Sean.
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