Date: Mon, 11 Nov 2024 08:44:24 +0100
On 11/11/2024 05.44, Thiago Macieira via Std-Discussion wrote:
> On Sunday 10 November 2024 15:27:43 Pacific Standard Time Mykola Garkusha
> wrote:
>> Just want to make padding bits stable and don't change between subsequent
>> value modifications so that memcmp actually works.
>
> But you need to have a motivation for that. You need to explain why you want
> to memcmp in the first place instead of using operator== or operator<=>.
In particular since we nowadays have defaulted operator== for memberwise
comparison, so the syntax burden on the user is near zero.
Jens
> On Sunday 10 November 2024 15:27:43 Pacific Standard Time Mykola Garkusha
> wrote:
>> Just want to make padding bits stable and don't change between subsequent
>> value modifications so that memcmp actually works.
>
> But you need to have a motivation for that. You need to explain why you want
> to memcmp in the first place instead of using operator== or operator<=>.
In particular since we nowadays have defaulted operator== for memberwise
comparison, so the syntax burden on the user is near zero.
Jens
Received on 2024-11-11 07:44:31