- marked as proposal
discard references to pointers?
Issue #8
new
Hi, I keep exploring hcfft. why does the main hcfft API expose references to pointers?
hcfftResult hcfftPlan1d(hcfftHandle *&plan, int nx, hcfftType type);
I don't see any reason why this should be needed? A plain pointer OR a reference would do AFAIK and keep the API simple.
Comments (2)
-
reporter -
In this example, variable plan, a pointer to hcfftHandle needs to get updated within hcfftPlan1d. There are only two ways for this
- passing pointer to pointer
- passing reference to pointer
We chose the second path
- Log in to comment