简体   繁体   English

GCC 7.3 是否包含所有 c++17 功能?

[英]Does GCC 7.3 contain all c++17 features?

I'm trying to build CMake project that use c++17 dialect with the CMake command:我正在尝试使用 CMake 命令构建使用 c++17 方言的 CMake 项目:

set_target_properties(${PROJECT_NAME} PROPERTIES
    CXX_STANDARD 17
    CXX_EXTENSIONS OFF
)

I see that it set the compiler flag "-std=c++1z", but I still getting errors that indicate for not sufficient c++ dialect:我看到它设置了编译器标志“-std=c++1z”,但我仍然收到指示 c++ 方言不足的错误:

error: 'reduce' was not declared in this scope error: 'to_chars_result' was not declared in this scope错误:“reduce”未在此 scope 中声明 错误:“to_chars_result”未在此 scope 中声明

which is suppose to come from and from c++ 17假设来自 c++ 17

This project does compile when I'm build it with windows当我用 windows 构建它时,这个项目会编译

Does GCC 7.3 contain all c++17 features? GCC 7.3 是否包含所有 c++17 功能?

No. The compiler has all language features according to documentation, but the standard library is missing a few things.不。根据文档,编译器具有所有语言特性,但标准库缺少一些东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM