Non-static data member initializers
非静态成员变量初始化变得简单
As a simple example,
class A { public: int a = 7; };
would be equivalent to
class A { public: A() : a(7) {} }; http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2756.htmC++11 Features Supported by RAD Studio Clang-based C++ Compilershttp://docwiki.embarcadero.com/RADStudio/XE7/en/C%2B%2B11_Features_Supported_by_RAD_Studio_Clang-based_C%2B%2B_Compilers
Multi-declarator auto
The C++11 standard includes the multi-variable form of auto
declarations, such as:
int* func(){} int _tmain(int argc, _TCHAR* argv[]) { auto x = 3, * y = func(), z = 4; return 0; }
时间: 2024-10-02 19:04:08