Static constexpr of class inside class link problems

前端 未结 4 748
花落未央
花落未央 2021-01-21 06:27

I\'m trying to create static constexprs defined inside the class. I know about this question: static constexpr member of same type as class being defined, and metho

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-21 06:33

    As with any variable definition, you should place it in one translation unit only.

    Move that last line out of your header.

提交回复
热议问题