auto x = (uint8_t)y.x
参考:https://stackoverflow.com/questions/42388077/constexpr-vs-macros
所以对于类似于 char str[] = "xyz"; log(str) 这样的调用就会报错,有两种解决方法:
c++ 学习笔记
原文:https://www.cnblogs.com/ramlife/p/12320417.html