Global variables and constexpr (inline or not?)

后端 未结 0 1380
梦毁少年i
梦毁少年i 2020-12-31 20:14

If I have: a.hpp a.cpp and main.cpp includes a.hpp, and in a.hpp I write

template
constexpr int num;
template<>
constexpr int num

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