如下代码:
class Class{ public: const int SIZE = 1e2 + 5; int array[SIZE]; };
会报错:
[Error] invalid use of non-static data member 'Class::SIZE'
求原因,bdfs 无果。