【发布时间】:2013-04-24 11:27:39
【问题描述】:
在 C++03 中,我们能够在类定义 but still had to define the memberif it were to be odr-used 内内联初始化 const static 类数据成员。
C++11 还是这样吗?
struct Foo
{
static const int x = 3;
};
const int Foo::x;
// ^ required?
【问题讨论】:
标签: c++ c++11 language-lawyer