Now implements P0653R2 - Utility to convert to raw pointer.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This feature has not been added to the draft standard yet, so I'm reluctant to add it to libc++.
I appreciate the patch, and we may adopt it in the future, but not now.
Comment Actions
Initially this LGTM. I'll take another pass in the morning.
include/memory | ||
---|---|---|
1096 | Just make this unconditionally constexpr. | |
test/std/utilities/memory/pointer.conversion/to_address.pass.cpp | ||
100 ↗ | (On Diff #123520) | Could you add some tests that run at compile time using static_assert. Also, could you verify the functions are correctly marked noexcept using ASSERT_NOEXCEPT from test_macros.h? |
test/std/utilities/memory/pointer.conversion/to_address.pass.cpp | ||
---|---|---|
119 ↗ | (On Diff #123531) | Shouldn't one of these tests hit a non-noexcept function? |
test/std/utilities/memory/pointer.conversion/to_address.pass.cpp | ||
---|---|---|
119 ↗ | (On Diff #123531) | Both overloads of to_address are unconditionally noexcept. |
Just make this unconditionally constexpr.