Hey All!
I’m sure there’s got to be a way, and
unfortunately, the boost users archive is “down for maintenance” so
I can’t search there. Basically, I have a 2 Dimensional array and I would
like to be able to access the center of that array using a variable that maps
to some index (for example, element[3][3] in a 7x7 array).
Can someone tell me how to do this? I tried to create a view
to a 0 Dimensional array, but that wouldn’t work (not surprisingly).
FWIW, here’s what I tried:
array_type::array_view<0>::type
center(myarray[ boost::indices[3][3] ]);
I can do this:
Array_type::array_view<1>::type
center(myarray[ boost::indices[range(3,3)][3] ]);
But then I access the center by doing
center[0]…
I guess that’ll work, but I wouldn’t consider
that ideal. Anyone? Anyone? Bueller? Bueller?
Thanks a bunch!
Daniel
********** Disclaimer - This email and any files transmitted with it are proprietary and may contain privileged or copyright information. You must not present this message to another party
without gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to
notify us.
If you have received this message in error, please notify the sender immediately, and delete this email from your system. We do not guarantee that this material is free from viruses or any
other defects although due care has been taken to minimize the risk. eSafe scanned this email for viruses, vandals and malicious content
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of LSI. **********