1.定义一个字符串常量
static const std::string version("0.0.1"); static const std::string name("Car-" + version);
2.定义size大小
static constexpr uint64_t shm_size{1000000UL}; static constexpr size_t mem_size{10u};
3.
标签:常用,const,string,C++,语法,constexpr,version,static,size From: https://www.cnblogs.com/aplmmy49y/p/17219243.html