cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

`constexpr` pmr?

Open lefticus opened this issue 3 years ago • 1 comments

lefticus avatar Jun 23 '22 00:06 lefticus

What happens if we take this header and just make it constexprified and use pmr in a constexpr context?

https://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00134_source.html

Possible hiccup: how to not move the underlying storage? The points generated at compile time will become invalidated when the storage is returned from the constexpr function.

lefticus avatar Jun 24 '22 21:06 lefticus