Now implements P0653R2 - Utility to convert to raw pointer.
Details
Diff Detail
Event Timeline
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.
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 | ||
| 101 | 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 | Shouldn't one of these tests hit a non-noexcept function? | |
| test/std/utilities/memory/pointer.conversion/to_address.pass.cpp | ||
|---|---|---|
| 119 | Both overloads of to_address are unconditionally noexcept. | |
Just make this unconditionally constexpr.