[libcxx-commits] [PATCH] D133638: [libc++] static_assert that rebinding the allocator works as expected

Jordan Rupprecht via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 11 14:00:22 PDT 2022


rupprecht added a comment.

In D133638#3850608 <https://reviews.llvm.org/D133638#3850608>, @rupprecht wrote:

> I see. That's a surprising result of this patch, and the error message is not very clear. Is there any way a static assert could be added to make it more clear?

To clarify, it would be nice if this had a static assert like "allocator must be a template or explicitly implement rebind". Encountering "no member named rebind" is not at all related to the fix that needs to be made.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133638/new/

https://reviews.llvm.org/D133638



More information about the libcxx-commits mailing list