How do I use constexpr method to calculate template parameter?

后端 未结 0 1619
北海茫月
北海茫月 2020-12-19 04:31

I have a simple function

    uint32_t getFilterWidth(bool lossless) const {
        return  lossless ? 2 : 4;
    }

I would like to use this

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