Re: [PATCH] libstdc++: Make ranges::construct_at constexpr-friendly [PR95788]

2020-10-08 Thread Jonathan Wakely via Gcc-patches
On 07/10/20 12:10 -0400, Patrick Palka via Libstdc++ wrote: On Wed, 30 Sep 2020, Patrick Palka wrote: This rewrites ranges::construct_at in terms of std::construct_at so that we can piggy back on the compiler's existing support for recognizing placement new within std::construct_at during const

Re: [PATCH] libstdc++: Make ranges::construct_at constexpr-friendly [PR95788]

2020-10-07 Thread Patrick Palka via Gcc-patches
Here's an updated patch that std::-qualifies the calls to declval in its function signature and adjusts formatting accordingly: -- >8 -- Subject: [PATCH] libstdc++: Make ranges::construct_at constexpr-friendly [PR95788] This rewrites ranges::construct_at in terms of std::construct_at s

[PATCH] libstdc++: Make ranges::construct_at constexpr-friendly [PR95788]

2020-09-30 Thread Patrick Palka via Gcc-patches
This rewrites ranges::construct_at in terms of std::construct_at so that we can piggy back on the compiler's existing support for recognizing placement new within std::construct_at during constexpr evaluation instead of having to additionally teach the compiler about ranges::construct_at. While we