I'm just trying to figure out how I can use clang++ to compile this:
for (int i : std::ranges::iota_view{1, 10})
std::cout << i << ' ';
The latest Apple Clang failed to recognize iota_view
, and so I downloaded LLVM 15.0.7 using Homebrew. This suggests that 15.0.7 is compatible with ranges
, but I'm still having trouble with it not being recognized, even with the -fexperimental-library
, -std=c++20
, and -stdlib=libc++
flags. Anyone know how to resolve this, short of just using gcc instead?