[PATCH] D35470: [libcxx] Implement std::to_address for C++20
Glen Fernandes via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 20 13:48:53 PST 2017
glenjofe added inline comments.
================
Comment at: test/std/utilities/memory/pointer.conversion/to_address.pass.cpp:119
+ ASSERT_NOEXCEPT(std::to_address(p4));
+ assert(std::to_address(p4) == &i);
+}
----------------
EricWF wrote:
> Shouldn't one of these tests hit a non-noexcept function?
Both overloads of to_address are unconditionally noexcept.
https://reviews.llvm.org/D35470
More information about the cfe-commits
mailing list