Hi Joey,

On Jun 26, 2008, at 2:43 PM, Joey Mukherjee wrote:

Suppose this type of setup was within a function, is it possible to make OneDView the return value of this function?  In other words, I would like to:

array_type::const_array_view <1>::type OneDView;
OneDView = multi_array[myindices];
return OneDView;


Off-hand, I see no reason why you couldn't do this.  So long as the multi_array is still in existence, you can build and keep a view of it.  How are you calling your function?  I'm afraid I can't tell what the problem might be since I can't see how it's really used.

Cheers,
ron



When I compile the code above, I get a compiler error saying operator= is private as least that's what I think it is saying!

Joey