|
From: | Edward Rosten |
Subject: | Re: [libcvd-members] Aligned mem crashes ? |
Date: | Sun, 26 Nov 2006 13:31:54 -0700 (MST) |
On Sun, 26 Nov 2006, twd20 wrote:
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...
Well, I completely missed that rather obvious point. -Ed
[Prev in Thread] | Current Thread | [Next in Thread] |