[Bug 271931] The C++20 feature 'std::ranges::copy' is missing

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 14 Jul 2023 19:01:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271931

--- Comment #6 from Yuri Victorovich <yuri@freebsd.org> ---
https://libcxx.llvm.org//Status/Cxx20.html#cxx20-status says that "The One
Ranges Proposal" was completed in llvm-15.0:

> P0896R4 	LWG 	The One Ranges Proposal Complete   15.0

Yet std::ranges::for_each which is a part of "The One Ranges Proposal" isn't
available in clang installed by the llvm-16 package on FreeBSD 13.2.

Do we know why std::ranges::for_each isn't available in clang-16?


> In file included from ../include/effects_base.hpp:48:
> ../include/rnnoise.hpp:93:11: error: no member named 'for_each' in namespace 'std::ranges'; did you mean 'std::for_each'?
>           std::ranges::for_each(data_L, [](auto& v) { v *= static_cast<float>(SHRT_MAX + 1); });
>           ^~~~~~~~~~~~~~~~~~~~~
>           std::for_each
>

-- 
You are receiving this mail because:
You are the assignee for the bug.