我想编写一个测试来检测枚举的基础类型,并且该测试用例应该与编译器无关。
我不能使用std::underlying_type,__underlying_type以及其他编译器具体实施
std::underlying_type
__underlying_type
GCC具有__underlying_type (type)编译器固有的功能。内在函数是编译器在内部实现的特殊功能。
__underlying_type (type)
其他编译器可能以类似的方式工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
点击生成二维码
我来说两句