Boost logo

Boost Users :

From: Sohail Somani (sohail_at_[hidden])
Date: 2007-11-29 14:26:54


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net