64 bit enum in C++?

后端 未结 10 1796
陌清茗
陌清茗 2020-12-09 16:35

Is there a way to have a 64 bit enum in C++? Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit ca

10条回答
  •  甜味超标
    2020-12-09 17:06

    Since you are working in C++, another alternative might be

    const __int64 LARVE_VALUE = ...
    

    This can be specified in an H file.

提交回复
热议问题