27 Jan
2009
27 Jan
'09
3:12 p.m.
template<int M, int N, class Storage = boost::mpl::identity<> > class regular_grid { typedef boost::array< boost::array<double, M>, N > array_type; typedef typename boost::mpl::apply<Storage, array_type>::type storage_type; storage_type axis_; // use axis };
typedef boost::add_reference<boost::add_const<boost::mpl::_1> > reference_policy; typedef boost::mpl::identity<> copy_policy;
regular_grid<2, 3, reference_policy> g;
In Christ, Steven Watanabe
Elegant solution I never began to imagine. Thank you, Steven. It's _generally_ useful. B/Rgds Max