Exclude a function's return value from [[nodiscard]]

后端 未结 0 1251
猫巷女王i
猫巷女王i 2021-01-30 02:40

I want to mark a class as nodiscard, but exclude the return value of a certain function from the nodiscard requirement. This is my goal:

enum class [[nodiscard]]          


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