Elegant way to ensure an std::map has a concrete size in compilation time

后端 未结 0 1861
别跟我提以往
别跟我提以往 2021-01-11 23:25

I was trying to ensure a std::map has the same size than an enum class at compile time. Avoiding the use of macros, if possible.

I tried with static_assert, but readi

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