c++11之后类中定义常量的最好方法

 static constexpr int a = 1;

static constexpr int background_color[3] = {0x1, 0x2, 0x3};

posted @ 2021-09-02 13:21  leo21sun  阅读(120)  评论(0编辑  收藏  举报