
2 Feb
2004
2 Feb
'04
2:37 p.m.
Neal D. Becker wrote:
I have some legacy C code that returns a pointer:
fftw_plan fftw_create_plan(int n, fftw_direction dir, int flags);
where fftw_plan is a pointer.
Can I use shared_pointer to wrap it? I guess the issue is that eventually delete will be called on this pointer, but it wasn't allocated with new. Is this a problem?
What do you need to call when you are finished with fftw_plan?