[PATCH] D48753: [libcxx] Use custom allocator's `construct` in C++03 when available.

Volodymyr Sapsai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 5 15:03:51 PDT 2018


vsapsai updated this revision to Diff 154326.
vsapsai added a comment.

- Use a better way to detect presence of `construct` with required signature. Clean up tests.

Don't know how other compilers will handle this but Clang accepts this
C++11-looking-but-accepted-in-C++03 code.


https://reviews.llvm.org/D48753

Files:
  libcxx/include/memory
  libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp
  libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp
  libcxx/test/support/min_allocator.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48753.154326.patch
Type: text/x-patch
Size: 6621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180705/ed20102d/attachment.bin>


More information about the cfe-commits mailing list