libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libcvd-members] Aligned mem crashes ?


From: twd20
Subject: Re: [libcvd-members] Aligned mem crashes ?
Date: Sun, 26 Nov 2006 19:47:53 +0000

> You could also replace some of the internals of aligned_mem with 
> posix_memalign instead of new char. Of course, you don't get the benefit 
> for std::vectors then.

The benefit of overwriting malloc rather than aligned_mem is that you
don't have to do any work to make the destructors happen properly C++
just does the right thing on its own since you're calling ordinary new
and delete...

Tom





reply via email to

[Prev in Thread] Current Thread [Next in Thread]