
11 Jan
2012
11 Jan
'12
8:23 a.m.
Also, something similar is done for multidimensional array classes.
Yep you are right, I did not realize this before you pointed it out. Thanks.
which returns the array indices corresponding to some offset into the array, is doing something similar to what your get<Tag>() is doing. However, get<Tag> just returns 1 index where Tag corresponds to some dimension in the array and indices_at_offset resturns all the indices.
Sound right?
I did not have the time to read indices_at_offset.hpp, but as the problem solved in compressed_enums is almost the same as in multi dimensional arrays I'm pretty sure they does the same. Regards Allan W. Nielsen