如何在 xcode 13 中使用 c++20 <ranges>?
How to use c++20 <ranges> in xcode 13?
我正在尝试在 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 似乎有 none。
(不要被版本号搞糊涂了,Apple 13.1 不一定要晚于 LLVM 13.0)。
我正在尝试在 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 似乎有 none。
(不要被版本号搞糊涂了,Apple 13.1 不一定要晚于 LLVM 13.0)。