From: David Abrahams (dave_at_[hidden])
Date: 2006-06-28 23:38:25
Gennaro Prota <gennaro_prota_at_[hidden]> writes:
> Nothing. I didn't say it is wrong, just that I can't (still) see an
> easier template-only approach for the multidimentional case. It would
> help if you could post your simpler solution.
I never solved that problem... until today. The enclosed works. It
could probably be considerably simplified if you untwist the logic a
bit. In particular, you could probably find a way to get rid of
remove_bounds. The basic idea here is that the only way to force an
error in some contexts, with vc6, is at the top level, with
eval0<...>::not_array being a nonexistent type.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk