Boost logo

Boost :

From: Bruno Martínez (br1_at_[hidden])
Date: 2006-09-21 22:13:31


On Thu, 21 Sep 2006 14:49:51 -0300, Neal Becker <ndbecker2_at_[hidden]>
wrote:

> Maybe I'm missing something obvious. How do I get a compile-time
> constant
> for the numDim from a multi_array?
>
> For example:
>
> template<typename matrix_t>
> void F (matrix_t const& m) {
> typedef typename matrix_t::value_type value_type;
> const int dim = ???

matrix_t::dimensionality

Bruno


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