News for hackers. Stuff that matters.
Re:Overview of C++ language support in Apple Clang by theirixhn on Monday June 12, 2023 @06:54AM (#36291460)
Finally, it's great that Apple added library support for ranges and PMR (memory resource) support. Currently, with a stable Xcode, you are living with clang 14. Link [1] is helpful for matching clang versions and placing preprocessor guards. Many new features (like pmr) were available in 'experimental' headers but not implemented in libc++ or any experimental library that lies nearby 'libc++'. Usually, I expect an experimental library like libstdc++fs that contains the implementation of experimental features. Starting with Xcode 15, I have seen a 'libc++experimental.a' library in a package. Could someone confirm the existence of this library in a beta installation?

[1] https://en.wikipedia.org/wiki/Xcode#Xcode_11.0_-_14.x_(since...

Re:Overview of C++ language support in Apple Clang by jcelerier on Monday June 12, 2023 @10:42AM (#36294336)
> and PMR (memory resource) support.

note that this sadly will require your users to use a macOS version that isn't even released yet (or rebuild your own libc++) as Apple ties libc++ to the OS releases. when I see the amount of people around me still on 10.x...

Re:Overview of C++ language support in Apple Clang by theirixhn on Monday June 12, 2023 @01:56PM (#36297983)
Thank you, good point.

It is a small note "Minimum deployment target" at the original article. Seems like features tied to target OS are: PMR, filesystem, to_chars/from_chars and newest atomic-based synchronisation primitives.

Re:Overview of C++ language support in Apple Clang by jcelerier on Tuesday June 13, 2023 @10:41AM (#36310918)
std::variant and std::optional also don't work below 10.14