C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::sizeof_minus_trailing_padding

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Sun, 3 Dec 2023 21:48:38 +0000
On Sun, Dec 3, 2023 at 7:20 PM Breno Guimar√£eswrote:
>
> By the way, the no_unique_address annotation didn't bring the concept of overlapping objects. It already existed.
>
> https://en.cppreference.com/w/cpp/language/ebo


But people haven't been memcpy'ing and memset'ing empty base classes
for a few decades.

Bringing it in for types where people would have historically been
using 'memset' as a bulldozer for a few decades is a much bigger deal.

Received on 2023-12-03 21:48:49