constexpr function only works if declared as a seemingly irrelevant template

后端 未结 0 1527
你的背包
你的背包 2020-12-08 23:52

The following code doesn\'t compile; g++ 7.3.0 with --std=c++17 gives the error message

invalid return type \'const C\' of constexpr functio

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