22 Oct
2002
22 Oct
'02
2:43 a.m.
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; }