c++11之后类中定义常量的最好方法 static constexpr int a = 1; static constexpr int background_color[3] = {0x1, 0x2, 0x3};