[PATCH] c++, libstdc++: Implement C++26 P2747R2 - constexpr placement new [PR115744]

Jason Merrill jason@redhat.com
Wed Jul 3 15:41:58 GMT 2024


On 7/3/24 10:37 AM, Jakub Jelinek wrote:
> +#if __cpp_lib_constexpr_new >= 202406L
> +# define _GLIBCXX_PLACEMENT_CONSTEXPR constexpr
> +#else
> +# define _GLIBCXX_PLACEMENT_CONSTEXPR inline
> +#endif

I'm a bit curious why you want constexpr *or* inline rather than leaving 
the inline keyword on the declaration and maybe adding constexpr.  The 
effect should be the same either way, so just wondering.

Jason



More information about the Libstdc++ mailing list