Can we make automatic type casing possible in c++ for function argument, when the argument is not a built-in type?

前端 未结 0 629
天涯浪人
天涯浪人 2021-01-28 12:44

suppose I have in a file type.h

#ifdef DTYPE==FP16
typedef half Dtype;
#else
typdef float Dtype;
#endif

I have a function declaration in test.h

相关标签:
回答
  • 消灭零回复
提交回复
热议问题