cpp_weekly
cpp_weekly copied to clipboard
no more new! construct_at
using construct_at instead of placement new: https://cppreference.net/cpp/memory/ranges/construct_at.html
Unfortunately it breaks RVO and in-place construction because it has to move the arguments, so raw placement new still has to be used in some cases. Perhaps that is why there is still momentum to make raw placement new allowed in constexpr.