[PATCH] D40144: Implement `std::launder`

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 17 14:32:20 PST 2017


mclow.lists updated this revision to Diff 123422.
mclow.lists marked an inline comment as done.
mclow.lists added a comment.

Move the `launder` function into the main libc++ namespace.
Call `__builtin_launder` when available.
Check to see when it's available (for gcc and clang)


https://reviews.llvm.org/D40144

Files:
  include/__config
  include/new
  test/std/language.support/support.dynamic/ptr.launder/launder.nodiscard.fail.cpp
  test/std/language.support/support.dynamic/ptr.launder/launder.pass.cpp
  test/std/language.support/support.dynamic/ptr.launder/launder.types.fail.cpp
  www/cxx1z_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40144.123422.patch
Type: text/x-patch
Size: 7183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171117/6be8f256/attachment.bin>


More information about the cfe-commits mailing list