The libc++ AIX already shipped contains a fix that's a bit different for pointer_safety on other platform.
It used enum class for pointer_safety without specifying the underlying type (which means the underlying type is "int").
Details
- Reviewers
hubert.reinterpretcast xingxue daltenty ldionne - Group Reviewers
Restricted Project
Diff Detail
Event Timeline
libcxx/include/memory | ||
---|---|---|
4079 | This code is already only used if the unstable ABI is used, so I don't understand why we're concerned about breaking that ABI. |
libcxx/include/memory | ||
---|---|---|
4079 | We shipped a downstream version libc++ with essentially this change to customer around November 2019. (Sorry for not being able to upstream before shipping due to time constraints we had back then) |
As discussed offline, my preferred way forward would be https://reviews.llvm.org/D100410. Nobody cares about std::pointer_safety, let's not add any more complexity to the library to salvage it.
This code is already only used if the unstable ABI is used, so I don't understand why we're concerned about breaking that ABI.