problem using cuComplex and std:complex in the same .cpp

Hello,

I am having a problem with a program where I have defined one version of a function to accept a cuComplex * buffer if I am using cuda, and the original version which contains a std:complex *
The functions have a different name, so it is not overloaded.

my problem is that, the original function now gets an error in it that crashes the program, when it tries to delete buffer;

this has never happened, and goes away after I take out my CUDA included stuff.

Is there some kind of conflict going on here between those two complex libraries?