$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [MultiArray] number of dimensions as static constant
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-06-26 11:00:41
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
multi_array and friends should provide the number of dimensions as a static
member constant, so it is available at compile time and can be used in
generic programming. I assume the num_dimensions() non-static member
function was put in the design with the idea that the number of dimensions of
a multi_array object might be dynamically changed. But since the multi array
concept and classes doen't support changing the number of dimensions, it
doesn't provide anything useful over a static constant.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkpE4poACgkQ5vihyNWuA4VzQgCfcbKVf2y10seFT7M+fAEkAHr9
KkAAniIZCuLumjb2VcVJgDF6BZMtalfb
=wyei
-----END PGP SIGNATURE-----