Hi all,
I am trying to use Boost with C++ for a project that I am working on, When I try to do
#include <iostream>
#include <boost\multi_array.hpp>
class myClass{
typedef boost::multi_array<double, 3> array3;
array3 myArray(boost::extents[100][100][2]);
public :
myClass() {}
~myClass(){}
};
int main() {
myClass *c = new myClass();
return 0;
}
I get an error saying that identifier extents not found in my MSVC 2010. Any help would be appreciated.
Sorcus
Last edited on
You can't initialize the data member myArray in that way; it has to be done in the initializer
list in the constructor.