GCC中更详细的C 17状态
More detailed C++17 status in GCC?
考虑以下最小完成:
#include <numeric>
int main() {
std::transform_reduce();
}
尝试用GCC 7.2编译它导致错误:
[bipll@home ~]$ g++ -std=c++17 omg.cpp
omg.cpp: In function ‘int main()’:
omg.cpp:4:7: error: ‘transform_reduce’ is not a member of ‘std’
std::transform_reduce();
^~~~~~~~~~~~~~~~
[bipll@home ~]$ g++ -v |& tail -1
gcc version 7.2.0 (GCC)
我试图在https://gcc.gnu.org/projects/cxx-status.html上找到相关的东西像检查 #if __has_include(<execution>)
一样琐碎地自动化,但是 <numeric>
是旧的,我看不到任何干净的方法来检查它是否包含特定的定义)。除了脚本解析STL标题外,是否还有有关当前草案中描述的某些内容是否已经实施的快速信息?什么时候会有什么?
在另一个页面上记录了库(libstdc )支持:
https://gcc.gnu.org/onlinedocs/libstdc /manual/status.html#status.iso.iso.201z
"平行性TS"仍然标记为"否",因此尚未实施。它也没有在Clang中实施。您可以在此处测试各种编译器:
https://gcc.godbolt.org
相关文章:
- CMake项目Boost库错误:Boost/config/compiler/gcc.hpp:165:10:致命错误:cs
- 奇怪的结构&GCC&clang(void*返回类型)
- GCC本机矩阵运算库
- PowerPC ppc64le上的Gcc Woverloaded虚拟错误
- gcc和c++17的过载解析失败
- 数据成员SFINAE的C++17测试:gcc vs clang
- GCC对可能有效的代码抛出init list生存期警告
- 如何解决gcc编译器优化导致的centos双编译器设置中的分段错误
- 使用 GCC 卸载的 OpenMP 卸载失败,并出现"Ptx assembly aborted due to errors"
- 为什么与常规GCC不同,即使有"学究性错误",MinGW-GCC也能容忍丢失的返回类型
- 使用gcc从静态链接的文件中查找可选符号
- 普通环路未使用gcc 4.8.5自动矢量化
- 有了gcc,是否可以链接库,但前提是它存在
- Constexpr替代了新的放置方式,可以让内存中的对象保持未初始化状态
- GCC (libstdc++) 运行时如何在异常处于活动状态时决定终止 ()
- GCC中更详细的C 17状态
- 错误:命令"GCC"失败,退出状态为 1,正在安装 PyMix
- 如何修复错误:命令'x86_64-linux-gnu-gcc'失败,退出状态为 1
- GCC 中 C++17 支持的状态如何?
- std::put_time在GCC中的实现状态