Boost logo

Boost Users :

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


On Thu, 29 Nov 2007 19:54:35 +0100, Maik Beckmann wrote:

> PLEASE don't use ublas matrices as pointers! They are not made for this
> (no virtual destructors for performace reasons). If you want to avoid
> copying, allways use references.

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(...);

-- 
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