Hi all, I've just decided to pick up boost for use in one of my programs, and I've been having trouble with initialising a multi_array. The problem that I've been having is trying to make a multi dimensional array of a class, something like this:
class foo
{
public:
foo(int _x){x = _x}
~foo(){}
private:
int x;
};
boost::multi_array< foo , 2 > array( boost::extents[100][100]);
I have no idea where to call the classes constructor, or how to make sure that there is enough memory allocated to hold it, any help at all appreciated.