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

[email protected]
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271931

--- Comment #6 from Yuri Victorovich <[email protected]> ---
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.