Clang 3.3 and C++14 support?
Clang 3.3 and C++14 support?
Clang 3.3支持一些C++14特性,如成员初始化器和聚合。但是,即使使用-std=c++11
开关,我也无法编译此代码。
struct A
{
struct X { int a, b; };
X x = { 1, 2 };
int n;
};
A a = {{10}, 5};
我做错了什么?
Clang 3.3
中的Post-C++11语言功能通过以下命令行开关启用:
-std=c++1y
查看此页面的底部http://clang.llvm.org/cxx_status.html以获取CCD_ 3中当前支持的C++11后功能的列表。
此外,您还可以在这里找到关于即将推出的C++14
的讨论和使用示例:http://www.meetingcpp.com/index.php/br/items/a-look-at-cpp14-papers-part-1.html
相关文章:
- C++核心准则 C35 对于接口类"A base class destructor should be either public and virtual, or protected and nonv
- 为什么C++逐位AND运算符在不同大小的操作数中表现为这样
- 为什么 Clang 不允许"and"作为函数名称?
- 位阵列上的快速AND运算
- 是否可以在 C++03 中定义'move-and-swap idiom'等效项
- BoostPython and CMake
- OpenSSL BIO and SSL_read
- Gurobi GRBModel and GRBmodel in C++
- Casablanca/cpprestsdk listener.support接受函数,但不支持方法
- std::visit and std::variant usage
- SHBrowseForFolder with BIF_BROWSEFORCOMPUTER and SHGetPathFr
- Directx12 and keystrokes
- different between int **arr =new int [ n]; and int a[i][j]?
- C++ getenv and setenv
- Inference pytorch C++ with alexnet and cv::imread image
- Emacs, cedet and c++/c++11 support
- RTTI support for C++11 ( _CPPRTTI and __GNUG__ )
- CFileDialog support XP and Vista
- Clang 3.3 and C++14 support?
- Facebook support for Java and C++