29 Nov
2007
29 Nov
'07
7:26 p.m.
On Thu, 29 Nov 2007 20:23:50 +0100, Maik Beckmann wrote:
I hope you weren't suggesting to do this:
// probably won't even compile, and will // hurt you if it does. vector_slice<T> & s = subslice(...);
A slice is a lightweight object, copying doesn't hurt.
The above wasn't a copy, it was a reference to a temporary (which shouldn't compile!) [snip] In any case, I think the OP needs to read a book or three :-) -- Sohail Somani http://uint32t.blogspot.com