VC++ 团队的官方博客曾表示:“VC++ 2013 RTM 将支持 C99 指定初始化器。”
但是,以下代码被 VC++ 2013 RC 拒绝:
struct A
{
int a;
double b;
A() = default; // OK as promised
virtual ~A() = default; // OK as promised
A(const A&) = delete; // OK as promised
};
int main()
{
A a = { .b = 3.14159 }; // Error! It is NOT as promised!
}