C++ Logo


Advanced search

Re: [std-proposals] [[packed]] std::unaligned

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Sat, 16 Dec 2023 18:01:34 +0000
On Sat, Dec 16, 2023 at 3:27 PM Frederick Virchanza Gotham wrote:
> unaligned<std::string> fish('\0',256u);
> fish.align().value().resize(0u);

I've further modified the code so that that second line can be simplified to:


Here's the GodBolt: https://godbolt.org/z/1hcPnxn3s

Received on 2023-12-16 18:01:30