At Mon, 05 Oct 2009 16:56:07 -0600, Gerard Jungman wrote: > On Mon, 2009-10-05 at 10:50 -0400, James Bergstra wrote: > > I'm a bit rusty with my C structs... but you would need two distinct > > static classes to have const and non-const data pointers for your view > > right? > > Yes, sorry. I left that out.
I think this is an interesting example. How would these two classes work in practice in C? For example, how would one pass a non-const matrix (taken as a view of a non-const multi-array) to a function taking a const matrix argument. Dealing with the interaction between const and non-const arguments is a fundamental issue.
