Date: Tue, 25 Jun 2024 11:23:35 +0100
On Tue, Jun 25, 2024 at 1:07 AM Thiago Macieira wrote:
>
> No, I don't think it's necessary. Because they are different closure types,
> anyone using them must be prepared to deal with types that may have different
> captures so it doesn't matter whether they have the same size and alignment or
> not. The rules above add unnecessary complexity to the standard.
Do you not at least think that the following program should print the
same number out twice?
https://godbolt.org/z/WTvfKb3dr
It prints 1 for the first size, and 72 for the second size. Do you
think that's okay? Or should it be fixed?
>
> No, I don't think it's necessary. Because they are different closure types,
> anyone using them must be prepared to deal with types that may have different
> captures so it doesn't matter whether they have the same size and alignment or
> not. The rules above add unnecessary complexity to the standard.
Do you not at least think that the following program should print the
same number out twice?
https://godbolt.org/z/WTvfKb3dr
It prints 1 for the first size, and 72 for the second size. Do you
think that's okay? Or should it be fixed?
Received on 2024-06-25 10:23:49