Boost logo

Boost :

From: Victor A. Wagner, Jr. (vawjr_at_[hidden])
Date: 2002-10-22 11:22:52


At Tuesday 2002/10/22 08:33, you wrote:
>'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 find a constructor.
>
>I want to do something like this:
>
>typedef boost::multi_array<std::complex<double>, 4>
>t_Array4D;

I think adding a templated implementation will suffice
template<> boost::multi_array<std::complex<double>, 4>;

>class foobar
>{
> t_Array4D ar;
>}
>
>void foobar::SetValue()
>{
> // set extents code
>
> // set value
> this->ar[0][0][0][0] = 2.0;
>}
>
>__________________________________________________
>Do you Yahoo!?
>Y! Web Hosting - Let the expert host your web site
>http://webhosting.yahoo.com/
>_______________________________________________
>Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Victor A. Wagner Jr. http://rudbek.com
PGP RSA fingerprint = 4D20 EBF6 0101 B069 3817 8DBF C846 E47A
PGP D-H fingerprint = 98BC 65E3 1A19 43EC 3908 65B9 F755 E6F4 63BB 9D93
The five most dangerous words in the English language:
               "There oughta be a law"


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk