static_assert within constexpr constructor

前端 未结 0 1926
借酒劲吻你
借酒劲吻你 2021-02-05 18:32

I search for a method to detect a given value for a constexpr constructor is in a valid range.

The code is as follows:

class Timer0 {
    constexpr Timer0(         


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