
On 12/07/07 19:14, Larry Evans wrote:
On 12/07/07 11:05, Larry Evans wrote: [snip]
There actually some code to illustrate this in the fold_seq_test.zip file at:
http://www.boost-consulting.com/vault/index.php?&directory=Template%20Metaprogramming
[snip] fold_seq_test.zip has been replaced with:
array_dyn_indices_static_shape_offset_demo.zip
which requires nothing on my local disk. It will [snip] In same vault directory, there's now:
array_multi_dyn_indices_static_shape_demo.cpp which doesn't bother with offset calcs and array<int,size> indices. It just uses boost::array and a new template: array_multi < ValueType , mpl::vector_c<extent_type,size0,size1,...,sizeN>
for any N to implement any rank array. It inherits from boost::array; hence, has all the it's methods. The .cpp file compiles and runs. That's all the testing that's been done.