Home > OS >  How to use c 20 <ranges> in xcode 13?
How to use c 20 <ranges> in xcode 13?

Time:12-09

I'm trying to use c 20 library in Xcode 13.1

#include <ranges>

I have set Apple Clang - Languages - C to -std=c 20 and compiler default, but it still throws 'ranges' file not found.

CodePudding user response:

According to this feature list

https://en.cppreference.com/w/cpp/compiler_support/20

Clang 13 claims "Partial" support, while Apple Clang seems to have none.

(Don't be confused by version numbers. Apple 13.1 doesn't have to be later than LLVM 13.0).

  • Related