|
Boost Users : |
Subject: Re: [Boost-users] [multi_array] compiling and changing an example
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-01-28 23:46:13
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<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.
>
It compiles fine for me with the trunk:
#include <boost/multi_array.hpp>
int main() {
typedef boost::multi_array<double, 3> array_type;
typedef array_type::index index;
array_type test(boost::extents[3][4][2]);
}
What version of boost are you using? What is your code
exactly (with #includes)? What is the exact error message?
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