
Hi,
I want to write a function that operates on one-dimensional
multi_array's and use it to modify the columns of a two-dimensional
multi_array. I thought that this would be a straightforward application
of slicing, i.e., views with dimensional reduction. However, my first
attempt to do so does not compile. (Please see the attached source
code.) When I try to pass a view to my function, I get:
error: invalid initialization of non-const reference of type
boost::multi_array_ref