C++ Logo

std-discussion

Advanced search

Re: UB, unions, common initial sequence and constexpr

From: Edward Catmur <ecatmur_at_[hidden]>
Date: Fri, 21 Oct 2022 14:26:08 +0100
On Fri, 21 Oct 2022 at 14:25, Wilhelm Meier <wilhelm.meier_at_[hidden]> wrote:

>
>
> On 21.10.22 15:13, Edward Catmur via Std-Discussion wrote:
> > On Fri, 21 Oct 2022 at 14:00, Lénárd Szolnoki via Std-Discussion
> > <std-discussion_at_[hidden]
> > <mailto:std-discussion_at_[hidden]>> wrote:
> >
> > Hi,
> >
> > It's explicitly not allowed in constexpr:
> >
> > https://timsong-cpp.github.io/cppwp/n4868/expr.const#5.9
> > <https://timsong-cpp.github.io/cppwp/n4868/expr.const#5.9>
> >
> >
> > This is annoying, esp. if P2641 is adopted;
>
> What is P2641?
>

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2641r1.html


>
> --
> Wilhelm
>
>

Received on 2022-10-21 13:26:20