Boost logo

Boost Users :

From: Jon Pendergrass (yg-boost-users_at_[hidden])
Date: 2002-10-21 21:43:29


I'm new to Boost, so please excuse my lack of knowledge. I'm trying to
use the multi_array class and have hit a small snag.

I'd like to have a class with a 4-D array. Initially it won't contain
any data. However, Microsoft Visual C++ v6.0 complains about not finding
a constructor.

I want to do something like this:

#include "boost/multi_array.hpp"
typedef boost::multi_array<std::complex<double>, 4> t_Array4D;

class foobar
{
   t_Array4D ar;
};

void foobar::SetValue()
{
   // set extents code

   // set value
   this->ar[0][0][0][0] = 2.0;
}


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