去看编译器的错误信息。
c++17肯定支持private static member variable
我猜你是不是把initialization 写在class 定义里面了。你只能在class 定义里面initialize private static const member variable。private static non-const member variable只能在source file 里面定义
class T {
private:
static const int a = 10; // good
static int b = 10; // compile error
};