$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] define multi dimension array at run time
From: Moataz Elmasry (zaza1851983ml_at_[hidden])
Date: 2012-06-08 16:24:23
Hello list
I'm writing an n-dimensional histogram class and would like to use the
boost multidimension array to store the elements of the histogram
So the array is defined as a class member but is first initialized
through the constructor, but according to boost example page its
something like:
typedef boost::multi_array<double, 3> array_type;
but I'd like:
typedef boost::multi_array<std::vector<MyObject>, n> array_type;
where n is given through the constructor
Is this somehow possible?
Regards
Moataz