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

 static constexpr int a = 1;

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

原文地址:https://www.cnblogs.com/codeking100/p/15218303.html