This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Implement LWG3545: std::pointer_traits should be SFINAE-friendly.
AbandonedPublic

Authored by zetafunction on Aug 25 2023, 11:48 PM.

Details

Summary

See https://wg21.link/LWG3545 for background and details.

Diff Detail

Event Timeline

zetafunction created this revision.Aug 25 2023, 11:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 11:48 PM
zetafunction requested review of this revision.Aug 25 2023, 11:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 11:48 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Make sure pointer_traits.h is C++03-compatible.

Use {} for aggregate init for compat with older compilers.

Since we are moving to GitHub PRs and there hasn't been any activity here yet, could you move this patch over?

Is there updated documentation for best practices for doing that? I was following https://libcxx.llvm.org/Contributing.html.

Is there updated documentation for best practices for doing that? I was following https://libcxx.llvm.org/Contributing.html.

We have just started the move, so I don't think there is any documentation yet. You should be able to just fork the llvm-project and then open a PR against the main repo.

Is there updated documentation for best practices for doing that? I was following https://libcxx.llvm.org/Contributing.html.

We have just started the move, so I don't think there is any documentation yet. You should be able to just fork the llvm-project and then open a PR against the main repo.

Thanks, I've gone ahead and opened the PR at https://github.com/llvm/llvm-project/pull/65177? Since you commented, would you be willing to take a look at it? It hasn't been quite a week yet (per https://llvm.org/docs/Contributing.html#how-to-submit-a-patch) but I'm not sure what the best way to proceed here is either, since this is my first libc++ patch.

Is there updated documentation for best practices for doing that? I was following https://libcxx.llvm.org/Contributing.html.

We have just started the move, so I don't think there is any documentation yet. You should be able to just fork the llvm-project and then open a PR against the main repo.

Thanks, I've gone ahead and opened the PR at https://github.com/llvm/llvm-project/pull/65177? Since you commented, would you be willing to take a look at it? It hasn't been quite a week yet (per https://llvm.org/docs/Contributing.html#how-to-submit-a-patch) but I'm not sure what the best way to proceed here is either, since this is my first libc++ patch.

Reviews are quite slow currently because we are still working on the 17 release and the GitHub PR merge is ongoing and utilizing almost all the resources we have. I'm currently also not very active, making matters worse. The review speed will probably pick up again in a week or two.

Please abandon this patch, since it's on GitHub now.

zetafunction abandoned this revision.Sep 1 2023, 12:34 PM
libcxx/include/__memory/pointer_traits.h