
29 Jun
2006
29 Jun
'06
3:38 a.m.
Gennaro Prota <gennaro_prota@yahoo.com> 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