B
bluekite2000
I want to accomplish the following
void foo(const T &v1, const T &v2)
{
if(v1&v2 is of type double)
double alpha=1.0;
else if (v1&v2 is of type complex double)
complex double alpha=(1.0,1.0);
bar(v1,v2,alpha);
}
void bar(const T&v1, const T&v2, const T& alpha)
{
}
but dont know how. Please help
Regards,
void foo(const T &v1, const T &v2)
{
if(v1&v2 is of type double)
double alpha=1.0;
else if (v1&v2 is of type complex double)
complex double alpha=(1.0,1.0);
bar(v1,v2,alpha);
}
void bar(const T&v1, const T&v2, const T& alpha)
{
}
but dont know how. Please help
Regards,