【发布时间】:2022-01-13 06:57:55
【问题描述】:
我正在尝试在 Xcode 13.1 中使用 c++20 库
#include <ranges>
我已将Apple Clang - Languages - C++ 设置为-std=c++20 和编译器默认值,但它仍然抛出'ranges' file not found。
【问题讨论】:
我正在尝试在 Xcode 13.1 中使用 c++20 库
#include <ranges>
我已将Apple Clang - Languages - C++ 设置为-std=c++20 和编译器默认值,但它仍然抛出'ranges' file not found。
【问题讨论】:
根据此功能列表
https://en.cppreference.com/w/cpp/compiler_support/20
Clang 13 声称“部分”支持,而 Apple Clang 似乎没有。
(不要被版本号弄糊涂了。Apple 13.1 不一定要晚于 LLVM 13.0)。
【讨论】: